SHARE
TWEET

Untitled

a guest Jun 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public AdminIntegartionTest(WebApplicationFactory<Startup> fixture)
  2.     {
  3.         _factory = fixture;
  4.     }
  5.  
  6.     [Fact]
  7.     public async Task TestGetAllBusinessSubUnit2Async()
  8.     {
  9.         // Arrange
  10.         var request = "/api/Admin/GetAllBusinessSubUnit2";
  11.         var client = _factory.CreateClient();
  12.         // Act
  13.         var response = await client.GetAsync(request);
  14.         // Assert
  15.         var okResult = response.Content.ReadAsStringAsync();
  16.         //Assert.IsType<OkObjectResult>(okResult);
  17.         Assert.NotNull(okResult);
  18.     //  var responseStrong = await response.Content.ReadAsStringAsync();
  19.     }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top