public void Setup() { kernel = new DefaultKernel(); kernel.AddFacility<MethodValidatorFacility>(); kernel.Register(Component.For<IComplexService>().ImplementedBy<ComplexService>()); //Add the WindsorContainer so we have an IProxyFactory instance WindsorContainer container = new WindsorContainer(kernel, new DefaultComponentInstaller()); service = kernel.Resolve<IComplexService>(); }
public void Setup() { kernel = new DefaultKernel(); kernel.AddFacility <MethodValidatorFacility>(); kernel.Register(Component.For <IComplexService>().ImplementedBy <ComplexService>()); //Add the WindsorContainer so we have an IProxyFactory instance WindsorContainer container = new WindsorContainer(kernel, new DefaultComponentInstaller()); service = kernel.Resolve <IComplexService>(); }
public ComplexModuleBase(IComplexService complexService) : base("") { Post("/complexA", async(parameters, token) => { ConfigurePostComplexARequestRoute(); return(await this.EvaluateAndBind <PostComplexARequest>(async(request) => await complexService.PostComplexA(request), HttpStatusCode.OK)); }); Post("/complexB", async(parameters, token) => { ConfigurePostComplexBRequestRoute(); return(await this.EvaluateAndBind <PostComplexBRequest>(async(request) => await complexService.PostComplexB(request), HttpStatusCode.OK)); }); Post("/complexC", async(parameters, token) => { ConfigurePostComplexCRequestRoute(); return(await this.EvaluateAndBind <PostComplexCRequest>(async(request) => await complexService.PostComplexC(request), HttpStatusCode.OK)); }); Post("/complexD", async(parameters, token) => { ConfigurePostComplexDRequestRoute(); return(await this.EvaluateAndBind <PostComplexDRequest>(async(request) => await complexService.PostComplexD(request), HttpStatusCode.OK)); }); Post("/complexE", async(parameters, token) => { ConfigurePostComplexERequestRoute(); return(await this.EvaluateAndBind <PostComplexERequest>(async(request) => await complexService.PostComplexE(request), HttpStatusCode.OK)); }); }
public ComplexController() : base(new UserService()) { _complexService = new ComplexService(); }
public FieldController(IFieldService fieldService, IComplexService complexService) { this.fieldService = fieldService; this.complexService = complexService; }
public HomeController(IUserService userService, IComplexService complexService, IFieldService fieldService) { this.userService = userService; this.complexService = complexService; this.fieldService = fieldService; }
public ApproveController(IComplexService svc) { _svc = svc; }
public ComplexModule(IComplexService complexService) : base(complexService) { }
public SheduleController(ISheduleService sheduleService, IComplexService complexService) { this.sheduleService = sheduleService; this.complexService = complexService; }