public applicationHandler(IApplicationRepository applicationRepository, IMechanicRepository mechanicRepository, IGarageRepository garageRepository, ILocationRepository locationRepository) { this.mechanicRepository = mechanicRepository; this.applicationRepository = applicationRepository; this.garageRepository = garageRepository; this.locationRepository = locationRepository; }
public GarageService(IGarageRepository garageRepository, ICarRepository carRepository, IMemoryCache memoryCache, IMapper mapper) { _garageRepository = garageRepository; _carRepository = carRepository; _memoryCache = memoryCache; _mapper = mapper; }
public GarageService(IGarageRepository garageRepository, ICarCategoryRepository carCategoryRepository, IAreaRepository areaRepository) { _garageRepository = garageRepository; _carCategoryRepository = carCategoryRepository; _areaRepository = areaRepository; }
public CarService(ICarRepository carRepository, ICarCategoryRepository carCategoryRepository, IGarageRepository garageRepository) { _carRepository = carRepository; _carCategoryRepository = carCategoryRepository; _garageRepository = garageRepository; }
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; }
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; }
public void TestCapacityWhenGarageIsCreated() { //Arrange int expectedCapacity = 7; //Act garageRepository = new Gararge <Vehicle>(expectedCapacity); //Assert Assert.AreEqual(expectedCapacity, garageRepository.Capacity); }
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); }
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); }
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); }
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); }
public GarageHandler(IApplicationRepository applicationRepository, IGarageRepository garageRepository, ILocationRepository locationRepository) { this.locationRepository = locationRepository; this.applicationRepository = applicationRepository; this.garageRepository = garageRepository; }
public GarageService(IGarageRepository repository) { Repository = repository; }
public GetGaragesQueryHandler(IGarageRepository garageRepository) { _garageRepository = garageRepository; }
public RefreshGarageStatusCommandHandler(IGarageRepository garegeRepository) { _garegeRepository = garegeRepository; }
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; }
public serviceHandler(IServiceRepository service, IGarageRepository garage) { this.service = service; this.garage = garage; }
public GarageService(IGarageRepository repository) : base(repository) { this._repository = repository; }
public void CreateGarage() { int capacity = InputHandler.InputGarageCapacity(); Garage = new Gararge <Vehicle>(capacity); }
public GaragesController(IGarageRepository garageRepository) { _garageRepository = garageRepository; }
public GarageService(IUnitOfWork unitOfWork, IGarageRepository repository) : base(unitOfWork, repository) { }
public serviceController(IServiceRepository serviceRepository, IGarageRepository garageRepository) { this.serviceRepository = serviceRepository; this.garageRepository = garageRepository; sh = new serviceHandler(this.serviceRepository, this.garageRepository); }