Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1.         public void SetUp()
  2.         {
  3.             route = $"{Configuration.ApiEndPoint}/apidocs";
  4.         }
  5.  
  6.         [Test]
  7.         [Category("Integration")]
  8.         public void ApiDocs_WhenGet_Returns200AndContent()
  9.         {
  10.             var client = new RestClient(route);
  11.             var request = new RestRequest(Method.GET);
  12.             var apiResponse = client.Execute(request);
  13.             apiResponse.StatusCode.Should().Be(HttpStatusCode.OK);
  14.  
  15.             apiResponse.Content.Should().NotBeNullOrEmpty();
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement