Inheritance: IRecordedHttpOutput, IRecordedTextOutput
Beispiel #1
0
        public Task Write(string contentType, string renderedOutput)
        {
            output = new SetContentType(contentType);
            output = new WriteTextOutput(renderedOutput);

            return(Task.CompletedTask);
        }
Beispiel #2
0
        public Task Write(string contentType, string renderedOutput)
        {
            output = new SetContentType(contentType);
            output = new WriteTextOutput(renderedOutput);

            return Task.CompletedTask;
        }
Beispiel #3
0
 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);
 }
Beispiel #7
0
        public Task Write(string renderedOutput)
        {
            output = new WriteTextOutput(renderedOutput);

            return(Task.CompletedTask);
        }
Beispiel #8
0
 public void Write(string renderedOutput)
 {
     output = new WriteTextOutput(renderedOutput);
 }
Beispiel #9
0
 public void Write(string contentType, string renderedOutput)
 {
     output = new SetContentType(contentType);
     output = new WriteTextOutput(renderedOutput);
 }
Beispiel #10
0
        public Task Write(string renderedOutput)
        {
            output = new WriteTextOutput(renderedOutput);

            return Task.CompletedTask;
        }
Beispiel #11
0
 public void Write(string renderedOutput)
 {
     output = new WriteTextOutput(renderedOutput);
 }
Beispiel #12
0
 public void Write(string contentType, string renderedOutput)
 {
     output = new SetContentType(contentType);
     output = new WriteTextOutput(renderedOutput);
 }