public void can_write_the_contents_of_a_file_to_the_output()
        {
            var fileInput = new FileInput
            {
                Name = "Test.txt"
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(fileInput);

                _.ContentTypeShouldBe("text/plain");
                _.ContentShouldContain("Some text here");
            });
        }
Exemplo n.º 2
0
        public void can_write_the_contents_of_a_file_to_the_output()
        {
            var fileInput = new FileInput
            {
                Name = "Test.txt"
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(fileInput);

                _.ContentTypeShouldBe("text/plain");
                _.ContentShouldContain("Some text here");
            });
        }
Exemplo n.º 3
0
        public void get_file_contents_Name(FileInput input)
        {
            var file = _files.Find(input.Name);

            _writer.WriteFile(MimeType.Text, file.Path, input.Name);
        }
 public void get_file_contents_Name(FileInput input)
 {
     var file = _files.Find(input.Name);
     _writer.WriteFile(MimeType.Text, file.Path, input.Name);
 }