main
 1using System.IO;
 2
 3namespace Spec.Dox.Presentation.Views
 4{
 5    public interface IReportPublisher
 6    {
 7        void Publish(string expected_html, string test_assembly_path);
 8    }
 9
10    public class ReportPublisher : IReportPublisher
11    {
12        public void Publish(string html_to_publish, string test_assembly_path)
13        {
14            var pathToWriteReportTo = Path.Combine(new FileInfo(test_assembly_path).DirectoryName, "report.html");
15            File.WriteAllText(pathToWriteReportTo, html_to_publish);
16            System.Console.Out.WriteLine("Report published to... {0}", pathToWriteReportTo);
17        }
18    }
19}