The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 7 C# moq Projects
-
AutoFixture
AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
-
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.
-
AspNetCore-React-WebApp
ASP.NET Core backend + React frontend + Entity Framework Core + automated testing
-
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.
Yes, it does feel like some of the "standard stuff" in other more nuanced languages are missing (especially miss AutoFixture ngl). Some of those are a conscious decison by the golang team for example.
Project mention: Questions about hobby project hosting, single VM multi-usage, DB hosting, frontend hosting, CICD... | /r/AskProgramming | 2023-06-05AWS lambda functions charge you a tiny amount of money (like a fraction of a cent) for every API call, so if you have like no users it is super cheap. Heroku used to be free for hobby demo apps but now they charge $7 a month. Heroku is very easy to use. You don't need a Node backend to use like a React or Aurelia or whatever frontend, you can have those frontends with an ASP.NET Core web app, you just have to configure it. You might be able to find a template with it pre-configured sort of like: https://github.com/microsoft/AspNetCore-React-WebApp
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.
C# moq related posts
- Creating a new DbContext in tests is slow
- Library to easily verify calls to ILogger with Moq
- Library to easily verify calls to ILogger with Moq
- Mock JSON Database .NET Core + GraphQL Help
- How can I mock a lambda where expression?
- Should you use the Repository Pattern? With CQRS, Yes and No!
-
A note from our sponsor - WorkOS
workos.com | 28 Apr 2024
Index
What are some of the best open-source moq projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | AutoFixture | 3,219 |
2 | MockQueryable | 701 |
3 | AspNetCore-React-WebApp | 245 |
4 | Moq.Contrib.HttpClient | 184 |
5 | entity-framework-core-mock | 131 |
6 | Moq.ILogger | 66 |
7 | NSubstituteVsMoq | 0 |
Sponsored