protected override IHtmlReport EstablishContext() { publisher = Dependency <IReportPublisher>(); var fixture = Stub <ITestContext>(); var testSpecification = Stub <ITestSpecification>(); fixture.is_told_to(f => f.Name).Return("when_a_blah_blah"); testSpecification.is_told_to(t => t.Name).Return("should_do_some_stuff"); var context = new HtmlReport(publisher); context.Add(fixture, new List <ITestSpecification> { testSpecification }); return(context); }
public void PublishGradeReports(IReportPublisher publisher) { }
public HtmlReport(IReportPublisher publisher) { this.publisher = publisher; builder = new StringBuilder(); builder.Append("<html><head><title>Specifications Document</title></head><body>"); }