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

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

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

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

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