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");
            });
        }
        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");
            });
        }
        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);
 }