public Task Write(string contentType, string renderedOutput) { output = new SetContentType(contentType); output = new WriteTextOutput(renderedOutput); return(Task.CompletedTask); }
public Task Write(string contentType, string renderedOutput) { output = new SetContentType(contentType); output = new WriteTextOutput(renderedOutput); return Task.CompletedTask; }
public bool Equals(WriteTextOutput other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other._text, _text)); }
public void WriteTextOutput_writetext_writes_the_text_to_the_stringwriter() { var writer = new StringWriter(); var writeText = new WriteTextOutput("jambalay"); writeText.WriteText(writer); writer.ToString().ShouldEqual("jambalay"); }
public void WriteTextOutput_replay_writes_the_text_to_the_HttpWriter() { var writeText = new WriteTextOutput("something"); writeText.Replay(theHttpWriter); theHttpWriter.AssertWasCalled(x => x.Write("something")); }
public bool Equals(WriteTextOutput other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other._text, _text); }
public Task Write(string renderedOutput) { output = new WriteTextOutput(renderedOutput); return(Task.CompletedTask); }
public void Write(string renderedOutput) { output = new WriteTextOutput(renderedOutput); }
public void Write(string contentType, string renderedOutput) { output = new SetContentType(contentType); output = new WriteTextOutput(renderedOutput); }
public Task Write(string renderedOutput) { output = new WriteTextOutput(renderedOutput); return Task.CompletedTask; }