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

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

            return Task.CompletedTask;
        }
示例#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"));
        }
示例#6
0
 public bool Equals(WriteTextOutput other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other._text, _text);
 }
示例#7
0
        public Task Write(string renderedOutput)
        {
            output = new WriteTextOutput(renderedOutput);

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

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