public VehicleActivity()
 {
     vehicleService       = MainApplication.Container.Resolve <IVehicleService>();
     vehicleBrandService  = MainApplication.Container.Resolve <IVehicleBrandService>();
     vehicleModelService  = MainApplication.Container.Resolve <IVehicleModelService>();
     vehicleEngineService = MainApplication.Container.Resolve <IVehicleEngineService>();
     vehicleFuelService   = MainApplication.Container.Resolve <IVehicleFuelService>();
     vehicleTypeService   = MainApplication.Container.Resolve <IVehicleTypeService>();
 }
Exemplo n.º 2
0
 public VehicleController(IVehicleService service, IColorTypeService colorTypeService, IFuelTypeService fuelTypeService, ITireTypeService tireTypeService, ITransmissionTypeService transmissionTypeService, IVehicleBrandService vehicleBrandService, IVehicleClassTypeService vehicleClassTypeService, IVehicleModelService vehicleModelService)
 {
     VehicleService          = service;
     ColorTypeService        = colorTypeService;
     FuelTypeService         = fuelTypeService;
     TireTypeService         = tireTypeService;
     TransmissionTypeService = transmissionTypeService;
     VehicleBrandService     = vehicleBrandService;
     VehicleClassTypeService = vehicleClassTypeService;
     VehicleModelService     = vehicleModelService;
 }
 public void Initialize()
 {
     Mapper.Reset();
     MappingConfig.Initialize();
     brandRepository = Substitute.For <IVehicleBrandRepository>();
     brandService    = new VehicleBrandService(brandRepository);
     brandEntity     = new VehicleBrand {
         Name = "Renault", Id = 1
     };
     //brandDto = Mapper.Map<Renting.Master.Core.Dtos.VehicleBrand>(brandEntity);
     brandList = new List <VehicleBrand>
     {
         brandEntity
     };
 }
Exemplo n.º 4
0
 public VehicleBrandController(IVehicleBrandService vehicleBrandService)
 {
     VehicleBrandService = vehicleBrandService;
 }
 public VehicleModelController(IVehicleBrandService vehicleBrandService, IVehicleModelService vehicleModelService)
 {
     VehicleBrandService = vehicleBrandService;
     VehicleModelService = vehicleModelService;
 }
Exemplo n.º 6
0
 public HomeController(ILogger <HomeController> logger, IVehicleBrandService vehicleBrandService)
 {
     _logger  = logger;
     _service = vehicleBrandService;
 }
Exemplo n.º 7
0
 public VehicleBrandsController(IVehicleBrandService vehicleBrandService)
 {
     this.vehicleBrandService = vehicleBrandService;
 }
Exemplo n.º 8
0
 public VehicleBrandController(IVehicleBrandService vehicleBrandService, IBusQueueClientService sbClient)
 {
     this.vehicleBrandService = vehicleBrandService;
     this.sbClient            = sbClient;
 }