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