Пример #1
0
        public async Task GetSingleById_Should_Return_NotFound(string url, int id)
        {
            //Arrange

            //Act
            var response = await HttpTestClient.GetAsync($"{url}{id}");

            //Assert
            response.StatusCode.ShouldBe(System.Net.HttpStatusCode.NotFound);
        }
Пример #2
0
        public async Task GetAll_Should_Return_Ok(string url)
        {
            //Arrange

            //Act
            var response = await HttpTestClient.GetAsync(url);

            //Assert
            response.StatusCode.ShouldBe(System.Net.HttpStatusCode.OK);
        }
Пример #3
0
 public UsersTests(HttpTestClient http)
 {
     _http = http;
 }
Пример #4
0
 public AdminBlogPostCommentsTests(HttpTestClient http)
 {
     _http = http;
 }
Пример #5
0
 public AccountTests(HttpTestClient http)
 {
     _http = http;
 }
Пример #6
0
 public SwaggerTests(HttpTestClient http)
 {
     _http = http;
 }
Пример #7
0
 public BlogPostsTests(HttpTestClient http)
 {
     _http = http;
 }
Пример #8
0
 public LoginFlowTest(HttpTestClient http)
 {
     _http = http;
 }
Пример #9
0
 public BlogManagementFlowTest(HttpTestClient http)
 {
     _http = http;
 }