Created
August 24, 2017 07:53
-
-
Save CoditCompany/22a551f2bc251b1e6ce42f11e3e2c85a to your computer and use it in GitHub Desktop.
PipeTo Counter Example
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
| [Property] | |
| public Property Response_With_404_Not_Found_If_Request_Contains_UnknownId( | |
| string unknownId, | |
| string existingId) | |
| { | |
| // Arrange | |
| Message fixture = new Message(unknownId).WithMethod(HttpMethod.Post); | |
| // Act | |
| Response response = ExerciseSendMessageWithKnownId(existingETag); | |
| // Assert | |
| bool isnotFound = HttpStatusCode.NotFound == response.StatusCode; | |
| return isNotFound.When(existingId != unknownId); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment