コード例 #1
0
 public UserControllerTests(InMemoryWebApplicationFactory <Startup> factory, ITestOutputHelper outputHelper)
 {
     _factory = factory;
     _factory.SetTestOutputHelper(outputHelper);
 }
コード例 #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);
 }