xUnit And Moq – How To Master Unit Testing In C#
Interested in unit testing in C#? Let’s look at xUnit and Moq for unit testing! We’ll explore mocking external dependencies and the role of these in unit tests.
Interested in unit testing in C#? Let’s look at xUnit and Moq for unit testing! We’ll explore mocking external dependencies and the role of these in unit tests.
Learn about IServiceCollection in C# and dependency injection. See how Dependency Inversion, Single Responsibility, and Open/Closed Principles fit together!
Use Testcontainers in ASP.NET Core testing to get better coverage! Learn how to simulate dependencies, test in parallel, and integrate with CI/CD tools!
Learn how to leverage xUnit in ASP.NET Core tests with simple code examples. See how to write easy-to-understand test code and cover your ASP.NET Core apps!
Learn about WebApplicationFactory in ASP.NET Core and leveraging it for testing. Use an HttpClient and implement the tips in this article for better tests!
Looking to implement the Memento Pattern in C#? Learn about its origin and principles, and the different components & steps to implementation!
Learn about the factory pattern! This article showcases several examples of the factory pattern in C# so that you can better understand this design pattern!
Check out this example vertical slice architecture in ASP.NET core! Together we’ll look at building a flight booking app using vertical slice architecture.