Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  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. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement