protected override IReportPresenter EstablishContext()
        {
            repository     = Dependency <ITestContextRepository>();
            view           = Dependency <IHtmlReport>();
            context        = Stub <ITestContext>();
            specifications = new List <ITestSpecification>();

            repository
            .is_told_to(r => r.All("1"))
            .Return(new List <ITestContext> {
                context
            });
            context
            .is_told_to(c => c.AllSpecifications())
            .Return(specifications);

            return(new ReportPresenter(view, repository));
        }
Beispiel #2
0
 public ReportPresenter(IHtmlReport report, ITestContextRepository repository)
 {
     this.report     = report;
     this.repository = repository;
 }