Exemplo n.º 1
0
 public UserControllerTests(InMemoryWebApplicationFactory <Startup> factory, ITestOutputHelper outputHelper)
 {
     _factory = factory;
     _factory.SetTestOutputHelper(outputHelper);
 }
Exemplo n.º 2
0
 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);
 }