public UserControllerTests(InMemoryWebApplicationFactory <Startup> factory, ITestOutputHelper outputHelper) { _factory = factory; _factory.SetTestOutputHelper(outputHelper); }
public ItemControllerTests(InMemoryWebApplicationFactory <Startup> factory, ITestOutputHelper outputHelper) { _factory = factory; //now we get detailed error messages every time the test throw an error _factory.SetTestOutputHelper(outputHelper); }