hello-shop/tests/HelloShop.ProductService.UnitTests
2025-03-15 22:00:29 +08:00
..
Helpers
HelloShop.ProductService.UnitTests.csproj 使用 CPM 中心包管理 2025-03-15 22:00:29 +08:00
MockProductsControllerTest.cs
ProductsControllerTest.cs 使用 TimeProvider 类注入时间 2025-03-15 21:15:59 +08:00
README.md

Unit test bast practices

Unit testing best practices with .NET Core and .NET Standard

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-best-practices

Testing without your production database system

https://learn.microsoft.com/en-us/ef/core/testing/testing-without-the-database

Unit test controller logic in ASP.NET Core

https://learn.microsoft.com/en-us/ef/core/testing/testing-without-the-database

Unit and integration tests in Minimal API apps

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/test-min-api

Integration tests in ASP.NET Core

https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests

Use Moq with xUnit in .NET Core unit tests

https://github.com/devlooped/moq

Test gRPC services in ASP.NET Core

https://learn.microsoft.com/en-us/aspnet/core/grpc/test-services