Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Created October 13, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottsauber/6f6e280b79944b9b153ccfd645baf50d to your computer and use it in GitHub Desktop.
Save scottsauber/6f6e280b79944b9b153ccfd645baf50d to your computer and use it in GitHub Desktop.
[Fact]
public async Task DoesReturnNotFound_GivenUserDoesNotExist()
{
// Act
var response = await _client.GetAsync($"/api/ApplicationUsers/abc"); // No users with ID abc
// Assert
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment