public void writes_the_status_code_and_reason() { var writer = MockRepository.GenerateMock<IHttpResponse>(); var continuation = new WriteStatusCodeContinuation(writer, HttpStatusCode.Accepted, "it's all good"); continuation.Write(writer); writer.AssertWasCalled(x => x.WriteResponseCode(HttpStatusCode.Accepted, "it's all good")); }
protected bool Equals(WriteStatusCodeContinuation other) { return _status == other._status && string.Equals(_reason, other._reason); }
protected bool Equals(WriteStatusCodeContinuation other) { return(_status == other._status && string.Equals(_reason, other._reason)); }