entity-framework-core-mock
NSubstituteVsMoq
entity-framework-core-mock | NSubstituteVsMoq | |
---|---|---|
1 | 1 | |
132 | 0 | |
0.8% | - | |
0.0 | 10.0 | |
6 months ago | over 2 years ago | |
C# | C# | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
entity-framework-core-mock
-
Repository and Unit Of Work
There's a neat little package called EntityFrameworkCoreMock that supports the use case. Sure, you can hit some issues with more complex configuration or queries, but it can cover a lot of cases out of the box. Since we use Moq at work and the context/dbset mocks inherit from Mock, we are able to setup almost everything we need.
NSubstituteVsMoq
-
Moq vs NSubstitute: syntax cheat sheet
đŸ”— GitHub repository for the code used in this article | GitHub
What are some alternatives?
Dapper-Layers-Generator - Automate layers generation for dapper (DAL/ POCO/ maybe API), based on database definitions. Read your DB and generate a lot of stuff to access your data.
MockQueryable - Mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
BabylonBlazor - This library packages the well-known Java Script 3D library [Babylon.js](https://www.babylonjs.com/) into a Razor component that can be used in a C# Blazor project. .NET 8.0 required for the new release
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
Moq.Contrib.HttpClient - A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
cell-cms - CMS leve, self-contained e prĂ¡tico de utilizar! Feito por desenvolvedores e para desenvolvedores!
NSubstitute - A friendly substitute for .NET mocking libraries.
awesome-dotnet-tips - Curated list of awesome tips and tricks, resources, videos and articles in .net, software architecture, microservice and cloud-native