예제 #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;
 }