search

This time instead of manual testing, we will make automated integration tests that make testing the API's behaviour easy. They can also confirm the API conforms to its contract. But the authentication requirement presents some challenges.

Bharat Dwarkani shared on Jan 18, 2020
image
joonasw.net
bookmarks
share
favorite_border0 visibility4
favorite_border0 visibility4 share bookmarks

If you want to run an integration test for your ASP.NET Core app without also testing lots of external dependencies like databases and the like, then the lengthy official ‘Integration tests in ASP.NET Core‘ documentation shows how you can use stubs to replace code that talks to a database or some other external service. If you want to use mocks, this is where you run out of guidance and runway.

Bharat Dwarkani shared on Jan 18, 2020
image
rehansaeed.com
bookmarks
share
favorite_border0 visibility8
favorite_border0 visibility8 share bookmarks

This blog post shows you how to create fake users for ASP.NET Core integration tests and write effective extension methods to keep integration tests shorter.

Bharat Dwarkani shared on Jan 17, 2020
image
gunnarpeipman.com
bookmarks
share
favorite_border0 visibility6
favorite_border0 visibility6 share bookmarks
add