public void EstablishContext() { this.WwdResultFacadeService = Substitute.For <IWwdResultFacadeService>(); var bootstrapper = new ConfigurableBootstrapper( with => { with.Dependency(this.WwdResultFacadeService); with.Dependency <IResourceBuilder <WwdResult> >(new WwdResultResourceBuilder()); with.Module <WwdModule>(); with.ResponseProcessor <WwdResultReportResponseProcessor>(); }); this.Browser = new Browser(bootstrapper); }
public WwdModule(IWwdResultFacadeService wwdResultFacadeService) { this.wwdResultFacadeService = wwdResultFacadeService; this.Get("/production/reports/wwd", _ => this.GetWwdResult()); }