Exemplo n.º 1
0
        public void Write(string contentType, Action<Stream> action)
        {
            output = new SetContentType(contentType);

            var stream = new MemoryStream();
            action(stream);

            output = new WriteStream(stream);
        }
Exemplo n.º 2
0
 public void AddOutput(IRecordedHttpOutput output)
 {
     _outputs.Add(output);
 }
Exemplo n.º 3
0
 public void Write(string contentType, string renderedOutput)
 {
     output = new SetContentType(contentType);
     output = new WriteTextOutput(renderedOutput);
 }
Exemplo n.º 4
0
 public void AppendHeader(string header, string value)
 {
     output = new Header(header, value);
 }
Exemplo n.º 5
0
 public void AddOutput(IRecordedHttpOutput output)
 {
     _outputs.Add(output);
 }
Exemplo n.º 6
0
 public void WriteFile(string contentType, string localFilePath, string displayName)
 {
     output = WriteFileRecord.Create(_fileSystem, localFilePath, contentType, displayName);
 }
Exemplo n.º 7
0
 public void Write(string renderedOutput)
 {
     output = new WriteTextOutput(renderedOutput);
 }