Created
July 23, 2019 07:36
-
-
Save ntakouris/750acf052475682a65d5e2b5cce8291a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Fact] | |
| public async Task GetAll_WithoutAnyPosts_ReturnsEmptyResponse() | |
| { | |
| // Arrange | |
| await AuthenticateAsync(); | |
| // Act | |
| var response = await TestClient.GetAsync(ApiRoutes.Posts.GetAll); | |
| // Assert | |
| response.StatusCode.Should().Be(HttpStatusCode.OK); | |
| (await response.Content.ReadAsAsync<List<Post>>()).Should().BeEmpty(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment