Example #1
0
 public applicationHandler(IApplicationRepository applicationRepository, IMechanicRepository mechanicRepository, IGarageRepository garageRepository, ILocationRepository locationRepository)
 {
     this.mechanicRepository    = mechanicRepository;
     this.applicationRepository = applicationRepository;
     this.garageRepository      = garageRepository;
     this.locationRepository    = locationRepository;
 }
Example #2
0
 public GarageService(IGarageRepository garageRepository, ICarRepository carRepository, IMemoryCache memoryCache, IMapper mapper)
 {
     _garageRepository = garageRepository;
     _carRepository    = carRepository;
     _memoryCache      = memoryCache;
     _mapper           = mapper;
 }
Example #3
0
 public GarageService(IGarageRepository garageRepository,
                      ICarCategoryRepository carCategoryRepository,
                      IAreaRepository areaRepository)
 {
     _garageRepository      = garageRepository;
     _carCategoryRepository = carCategoryRepository;
     _areaRepository        = areaRepository;
 }
Example #4
0
 public CarService(ICarRepository carRepository,
                   ICarCategoryRepository carCategoryRepository,
                   IGarageRepository garageRepository)
 {
     _carRepository         = carRepository;
     _carCategoryRepository = carCategoryRepository;
     _garageRepository      = garageRepository;
 }
Example #5
0
        public GarageService(IGarageRepository repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            _repository = repository;
        }
 public GarageService(IGarageRepository repository,
                      ICityService cityService,
                      IAddressService addressService,
                      IPricelistService pricelistService)
     : base(repository)
 {
     CityService      = cityService;
     AddressService   = addressService;
     PricelistService = pricelistService;
 }
Example #7
0
 public ParkingBookingCommandHandler(
     IGarageRepository garageRepository,
     IServiceBus bus,
     string bookingResultTopicKey,
     ILogger <ParkingBookingCommandHandler> logger)
 {
     _garageRepository = garageRepository ?? throw new ArgumentNullException(nameof(garageRepository));
     _bus = bus ?? throw new ArgumentNullException(nameof(bus));
     _bookingReslutTopicKey = bookingResultTopicKey ?? throw new ArgumentNullException(nameof(bookingResultTopicKey));
     _logger = logger;
 }
Example #8
0
        public void TestCapacityWhenGarageIsCreated()
        {
            //Arrange

            int expectedCapacity = 7;

            //Act
            garageRepository = new Gararge <Vehicle>(expectedCapacity);

            //Assert

            Assert.AreEqual(expectedCapacity, garageRepository.Capacity);
        }
Example #9
0
        public void TestInit()
        {
            list.Add(new Car("ABC123", FuelType.GASOLINE));
            list.Add(new Car("EFG123", FuelType.DIESEL));
            list.Add(new Boat("HIJ123", 3));
            list.Add(new Boat("KLM123", 2));
            list.Add(new Airplane("NOP123", 100));
            list.Add(new Airplane("NOP456", 42));
            list.Add(new Motorcycle("NOP789", true));
            list.Add(new Motorcycle("QRS123", false));
            list.Add(new Bus("QRS456", 66));
            list.Add(new Bus("QRS789", 90));

            garageRepository = new Gararge <Vehicle>(list.Count);
        }
Example #10
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);
        }
Example #12
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);
        }
Example #13
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);
        }
Example #14
0
 public GarageHandler(IApplicationRepository applicationRepository, IGarageRepository garageRepository, ILocationRepository locationRepository)
 {
     this.locationRepository    = locationRepository;
     this.applicationRepository = applicationRepository;
     this.garageRepository      = garageRepository;
 }
Example #15
0
 public GarageService(IGarageRepository repository)
 {
     Repository = repository;
 }
Example #16
0
 public GetGaragesQueryHandler(IGarageRepository garageRepository)
 {
     _garageRepository = garageRepository;
 }
 public RefreshGarageStatusCommandHandler(IGarageRepository garegeRepository)
 {
     _garegeRepository = garegeRepository;
 }
Example #18
0
 public MechanicHandler(IMechanicRepository mechanicRepository, IGarageRepository garageRepository, IApplicationRepository applicationRepository)
 {
     this.applicationRepository = applicationRepository;
     this.garageRepository      = garageRepository;
     this.mechanicRepository    = mechanicRepository;
 }
 public CreateGarageCommandHandler(IGarageRepository garegeRepository)
 {
     _garegeRepository = garegeRepository;
 }
 public ParkingProject_Initilize(ICarRepository carRepository, IGarageRepository garageRepository)
 {
     _carRepository    = carRepository;
     _garageRepository = garageRepository;
 }
Example #21
0
 public serviceHandler(IServiceRepository service, IGarageRepository garage)
 {
     this.service = service;
     this.garage  = garage;
 }
Example #22
0
 public GarageService(IGarageRepository repository) : base(repository)
 {
     this._repository = repository;
 }
Example #23
0
        public void CreateGarage()
        {
            int capacity = InputHandler.InputGarageCapacity();

            Garage = new Gararge <Vehicle>(capacity);
        }
Example #24
0
 public GaragesController(IGarageRepository garageRepository)
 {
     _garageRepository = garageRepository;
 }
Example #25
0
 public GarageService(IUnitOfWork unitOfWork, IGarageRepository repository) : base(unitOfWork, repository)
 {
 }
Example #26
0
 public serviceController(IServiceRepository serviceRepository, IGarageRepository garageRepository)
 {
     this.serviceRepository = serviceRepository;
     this.garageRepository  = garageRepository;
     sh = new serviceHandler(this.serviceRepository, this.garageRepository);
 }