Introduction
I will share same libraries and packages to make your .NET project easier, and explain a little about their functionality.Note: You can copy copy the library links from github and paste them into your Notions.
I wrote about this library in my last articleTools o improve your unit test with .NET. I have a Github repository about Unit Test and I used this library for test ([Unit Test]https://github.com/JessicaNathany/unit-test) the code ist portuguese but I will write in english.
Faker.NET
This library is a little diferent the NBuilder, because if you want something whic looks like actual names, address, email, thelephone numbers, etc you can use Faker.NET.
Bogus
Bogus is a simple and sane fake data generator for .NET languages like C#, F# and VB.NET. Bogus is fundamentally a C# port of faker.js and inspired by FluentValidation's syntax sugar. Created by Brian Chavez.
The example bellow is from repository Brian Chavez
Ocelot
Ocelot is a .NET API Gateway. This project is aimed at people using .NET running a micro services / service oriented architecture that need a unified point of entry into their system. However it will work with anything that speaks HTTP and run on any platform that ASP.NET Core supports.
The example below is taken from the website Microsoft Documentation API Gateway with Ocelot.
Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.
The example below is taken from repository Polly Github.
CacheManager
CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
The main goal of the CacheManager package is to make developer's life easier to handle even very complex caching scenarios..
AutoMapper
AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another.
The example below is taken from repository AutoMapper Github.
FluentValidation
A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.
The example below is taken from repository FluentValidation Github.
Swagger
Swagger tooling for APIs built with ASP.NET Core. Generate beautiful API documentation, including a UI to explore and test operations, directly from your routes, controllers and models.
0 Comments