Exemple #1
0
        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);
        }
Exemple #2
0
 public WwdModule(IWwdResultFacadeService wwdResultFacadeService)
 {
     this.wwdResultFacadeService = wwdResultFacadeService;
     this.Get("/production/reports/wwd", _ => this.GetWwdResult());
 }