public void can_delete_user_with_correct_credentials() { given_request_to(Uris.User(2)) .Delete() .Credentials("username", "password"); when_retrieving_the_response(); Response.StatusCode.ShouldBe(200); }
public void cannot_delete_user_with_wrong_credentials() { given_request_to(Uris.User(2)) .Delete() .Credentials("username", "wrongpassword"); when_retrieving_the_response(); Response.StatusCode.ShouldBe(401); }