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