Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.12 KB

setup-dotnet-test-projects

An introduction how to setup and organize the test projects in .NET

Features

First

  1. Define PeopleServiceWebApplicationFactory which is a custom of WebApplicationFactory
  2. Define PeopleServiceTestFixture which is an implementation of IAsyncLifetime
  3. Define PeopleServiceTestBase the base class of every test

Then implement tests

  1. Define CreatePersonTestFixture.cs inherits from PeopleServiceTestFixture
  2. Define DoTestCreatePerson inherits from PeopleServiceTestBase

Resources