Tag: api

post-thumbpost-thumbpost-thumb

How do you do your tests on your ASPNET Web API ?

Unit testing is an important part of software development. In the case of Web API controllers, it is recommended to test that the action returns the correct type of response, invalid parameters return the correct error response, and that the action calls the correct method on the repository or service layer. AutoFixture.AutoMoq.WebApi NuGet package can be used to mock Request object in Web API controllers. This package facilitates maintenance of unit tests and test data by leveraging generation of objects for you

Continue Reading