Top 9 C# Mock Projects
-
List-of-Testing-Tools-and-Frameworks-for-.NET
✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
-
fake-xrm-easy
The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
-
Moq.Contrib.HttpClient
A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
-
entity-framework-core-mock
Easy Mock wrapper for mocking EFCore5 DbContext and DbSet using Moq or NSubstitute
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
a. you might do so purely out of argo cult, i.e. because someone told you this was the right thing to do™, and that's a silly exercise. b. you could also be doing this for a good reason: to use the interface with a mocking tool like NSubstitute
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.
If you're looking for alternatives to Moq please check out DivertR, a mocking framework I have created https://github.com/devodo/DivertR
C# Mock related posts
Index
What are some of the best open-source Mock projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | NSubstitute | 2,550 |
2 | List-of-Testing-Tools-and-Frameworks-for-.NET | 513 |
3 | Mockaco | 317 |
4 | fake-xrm-easy | 263 |
5 | Moq.Contrib.HttpClient | 184 |
6 | entity-framework-core-mock | 131 |
7 | CreateAndFake | 11 |
8 | DivertR | 10 |
9 | azure.functions.tables | 0 |
Sponsored