Esempio n. 1
0
 public ServiceController(IBranchBusinessService branchService, IServiceBusinessService publicService,
                          IServiceTypeBusinessService publicServiceType, IServiceUnitBusinessService unitService)
 {
     _serviceBuilder = new ServiceBuilder();
     _serviceBuilder.BuildBranchService(branchService);
     _serviceBuilder.BuildPublicService(publicService);
     _serviceBuilder.BuildServiceTypeService(publicServiceType);
     _serviceBuilder.BuildServiceUnitService(unitService);
 }
Esempio n. 2
0
 public ServiceController(
     IServiceBusinessService serviceBusinessService,
     IVehicleBusinessService vehicleBusinessService,
     IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     this._serviceBusinessService = serviceBusinessService;
     this._vehicleBusinessService = vehicleBusinessService;
     this._config = new MapperConfiguration(
         cfg =>
     {
         cfg.CreateMap <Service, BusinessService.Models.Service>().ReverseMap();
         cfg.CreateMap <EditService, BusinessService.Models.EditService>().ReverseMap();
     });
     this._mapper = new Mapper(this._config);
 }
Esempio n. 3
0
        public QuotationController(IAccessaryBusinessService accessaryService, IAccessaryUnitBusinessService accessaryUnitService, IServiceBusinessService publicService,
                                   IServiceUnitBusinessService publicServiceUnit, IQuotationBusinessService quotationService, ICarBusinessService carService,
                                   ICustomerBusinessService customerService, ICustomerExchangeBusinessService customerExchangeService, IBranchBusinessService branchService,
                                   ICustomerTypeBusinessService customerTypeService)
        {
            _serviceBuilder = new ServiceBuilder();
            _serviceBuilder.BuildAccessaryService(accessaryService);
            _serviceBuilder.BuildAccessaryUnitService(accessaryUnitService);
            _serviceBuilder.BuildPublicService(publicService);
            _serviceBuilder.BuildServiceUnitService(publicServiceUnit);
            _serviceBuilder.BuildQuotationService(quotationService);
            _serviceBuilder.BuildCarService(carService);
            _serviceBuilder.BuildCustomerService(customerService);
            _serviceBuilder.BuildCustomerExchangeService(customerExchangeService);
            _serviceBuilder.BuildBranchService(branchService);
            _serviceBuilder.BuildCustomerTypeService(customerTypeService);

            _serviceParameter = _serviceBuilder.Parameter;
        }
Esempio n. 4
0
 public void BuildPublicService(IServiceBusinessService publicService)
 {
     _parameter.PublicService = publicService;
 }