Category Archives: xUnit

.Net Core Web Api CRUD Controller unit testing code sample

Unit testing in .Net Core has been made simple. It has been designed with testability in mind. TDD approach has paid rich dividends for the developers who follow them religiously. Unit tests gives you the confidence and faith in your code, catches errors early in the cycle and overall, improves productivity levels across the team.… Read More »

Code sample for .Net Core Web Api Controller Integration Tests

Integration testing ensures the different parts of an application work correctly together. Unlike unit testing, integration tests frequently involve application dependencies such as database. To get set up integration tests in .Net Core, you’ll need a test project, add reference to your .Net Core Api project and a test runner. Magic is in the test… Read More »