Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public AdminIntegartionTest(WebApplicationFactory<Startup> fixture)
- {
- _factory = fixture;
- }
- [Fact]
- public async Task TestGetAllBusinessSubUnit2Async()
- {
- // Arrange
- var request = "/api/Admin/GetAllBusinessSubUnit2";
- var client = _factory.CreateClient();
- // Act
- var response = await client.GetAsync(request);
- // Assert
- var okResult = response.Content.ReadAsStringAsync();
- //Assert.IsType<OkObjectResult>(okResult);
- Assert.NotNull(okResult);
- // var responseStrong = await response.Content.ReadAsStringAsync();
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement