示例#1
0
        public customerController(
            IAuthenticate authenticate,
            IGarageRepository garageRepository,
            IServiceRepository serviceRepository,
            ICustomerRepository customerRepository,
            ILogtimeRepository logtimeRepository)
        {
            this.authenticate       = authenticate;
            this.customerRepository = customerRepository;
            this.serviceRepository  = serviceRepository;
            this.garageRepository   = garageRepository;
            this.logtimeRepository  = logtimeRepository;

            ah = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh = new serviceHandler(this.serviceRepository, this.garageRepository);
            ch = new CustomerHandler(this.customerRepository);
        }
        public systemAdminController(
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            ISysAdminRepository sysAdminRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository)
        {
            this.authenticate       = authenticate;
            this.sysAdminRepository = sysAdminRepository;
            this.serviceRepository  = serviceRepository;
            this.garageRepository   = garageRepository;
            this.logtimeRepository  = logtimeRepository;

            ah  = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh  = new serviceHandler(this.serviceRepository, this.garageRepository);
            sah = new systemAdminHandler(this.sysAdminRepository);
        }
示例#3
0
        public garageController(
            IApplicationRepository applicationRepository,
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository,
            ILocationRepository locationRepository)
        {
            this.locationRepository    = locationRepository;
            this.authenticate          = authenticate;
            this.serviceRepository     = serviceRepository;
            this.garageRepository      = garageRepository;
            this.applicationRepository = applicationRepository;
            this.logtimeRepository     = logtimeRepository;

            ah = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh = new serviceHandler(this.serviceRepository, this.garageRepository);
            gh = new GarageHandler(this.applicationRepository, this.garageRepository, this.locationRepository);
        }
示例#4
0
        public mechanicController(
            IApplicationRepository applicationRepository,
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            IMechanicRepository mechanicRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository)
        {
            this.authenticate          = authenticate;
            this.mechanicRepository    = mechanicRepository;
            this.serviceRepository     = serviceRepository;
            this.applicationRepository = applicationRepository;
            this.garageRepository      = garageRepository;
            this.logtimeRepository     = logtimeRepository;

            ah = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh = new serviceHandler(this.serviceRepository, this.garageRepository);
            mh = new MechanicHandler(this.mechanicRepository, this.garageRepository, this.applicationRepository);
        }
示例#5
0
 public serviceController(IServiceRepository serviceRepository, IGarageRepository garageRepository)
 {
     this.serviceRepository = serviceRepository;
     this.garageRepository  = garageRepository;
     sh = new serviceHandler(this.serviceRepository, this.garageRepository);
 }