Skip to content

Instantly share code, notes, and snippets.

@CoditCompany
Created August 24, 2017 07:53
Show Gist options
  • Select an option

  • Save CoditCompany/22a551f2bc251b1e6ce42f11e3e2c85a to your computer and use it in GitHub Desktop.

Select an option

Save CoditCompany/22a551f2bc251b1e6ce42f11e3e2c85a to your computer and use it in GitHub Desktop.
PipeTo Counter Example
[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