Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void SetUp()
- {
- route = $"{Configuration.ApiEndPoint}/apidocs";
- }
- [Test]
- [Category("Integration")]
- public void ApiDocs_WhenGet_Returns200AndContent()
- {
- var client = new RestClient(route);
- var request = new RestRequest(Method.GET);
- var apiResponse = client.Execute(request);
- apiResponse.StatusCode.Should().Be(HttpStatusCode.OK);
- apiResponse.Content.Should().NotBeNullOrEmpty();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement