コード例 #1
0
 public CarController(ICarService carService, ICarMakeService makeCarService, ICarModelService modelCarService, ICountriesWebService countriesWebService)
 {
     _carService          = carService;
     _makeCarService      = makeCarService;
     _modelCarService     = modelCarService;
     _countriesWebService = countriesWebService;
 }
コード例 #2
0
 public AuctionHouseAddEditVehicleController(
     IAuctionHouseService auctionHouseService,
     IAspNetUserService aspNetUserService,
     IBodyTypeService bodyTypeService,
     ICarModelService carModelService,
     IMakeService makeService,
     ITransmissionTypeService transmissionTypeService,
     IFuelTypeService fuelTypeService,
     IEngineSizeService engineSizeService,
     IAuctionHouseAddEditVehicleService auctionHouseAddEditVehicleService,
     IAuctionHouseCarSellingVehicleImagesService auctionHouseCarSellingVehicleImagesService,
      IAuctionHouseSaleService auctionHouseSaleService,
     IAuctionHouseCarSellingVehicleImagesMoreService auctionHouseCarSellingVehicleImagesMoreService,
     IInteriorTrimService interiorTrimService,
     IServiceHistoryAuctionService serviceHistoryAuctionService,
      ICheckStatusService checkStatusService
     )
 {
     _auctionHouseService = auctionHouseService;
     _aspNetUserService = aspNetUserService;
     _bodyTypeService = bodyTypeService;
     _carModelService = carModelService;
     _makeService = makeService;
     _transmissionTypeService = transmissionTypeService;
     _fuelTypeService = fuelTypeService;
     _engineSizeService = engineSizeService;
     _auctionHouseAddEditVehicleService = auctionHouseAddEditVehicleService;
     _auctionHouseCarSellingVehicleImagesService = auctionHouseCarSellingVehicleImagesService;
     _auctionHouseSaleService = auctionHouseSaleService;
     _auctionHouseCarSellingVehicleImagesMoreService = auctionHouseCarSellingVehicleImagesMoreService;
     _interiorTrimService = interiorTrimService;
     _serviceHistoryAuctionService = serviceHistoryAuctionService;
     _checkStatusService = checkStatusService;
 }
コード例 #3
0
     public CarSellerController(
     IAspNetUserService aspNetUserService,
     IBodyTypeService bodyTypeService,
     ICarSellerTypeService carSellerTypeService,
     ICarSellingOnService carSellingOnService,
     ICarSellerInfoService carSellerInfoService,
     ICarModelService carModelService,
     IMakeService makeService,
     ITransmissionTypeService transmissionTypeService,
     IFuelTypeService fuelTypeService,
     ICarSellerVehicleInfoService carSellerVehicleInfoService,
     ICarSellerMoreDetailService carSellerMoreDetailService,
     ICarSellerVehicleImagesService carSellerVehicleImagesService,
         ICarSellerVehicleFuelTypeService carSellerVehicleFuelTypeService,
         IEngineSizeService engineSizeService
 )
     {
         _aspNetUserService = aspNetUserService;
         _carSellerTypeService = carSellerTypeService;
         _carSellingOnService = carSellingOnService;
         _bodyTypeService = bodyTypeService;
         _carModelService = carModelService;
         _makeService = makeService;
         _transmissionTypeService = transmissionTypeService;
         _fuelTypeService = fuelTypeService;
         _carSellerVehicleInfoService = carSellerVehicleInfoService;
         _carSellerMoreDetailService = carSellerMoreDetailService;
         _carSellerVehicleImagesService = carSellerVehicleImagesService;
         _carSellerInfoService = carSellerInfoService;
         _carSellerVehicleFuelTypeService = carSellerVehicleFuelTypeService;
         _engineSizeService = engineSizeService;
     }
コード例 #4
0
        public CarModelServiceTests()
        {
            _carRepository = new EfRepository <Car>(applicationDbContext, new CarValidator());

            _carModelService = new CarModelService(
                _carRepository,
                new Mapper(
                    new MapperConfiguration(cfg => cfg.AddProfile(new MappingProfile()))),
                new ImageService(
                    new EfRepository <Image>(applicationDbContext, new FileDataValidator <Image>()),
                    new EfRepository <Thumbnail>(applicationDbContext, new FileDataValidator <Thumbnail>()),
                    new ImageFormatResolver()));

            var images = FileDataSeeder.GetBase64Images().ToArray();

            _jObject1      = new JObject();
            _jObject1.data = new JObject(new JProperty("Value", images[0]));
            _jObject1.type = "png";
            _jObject1.size = new JObject(new JProperty("Value", 1000000));

            _jObject2      = new JObject();
            _jObject2.data = new JObject(new JProperty("Value", images[1]));
            _jObject2.type = "png";
            _jObject2.size = new JObject(new JProperty("Value", 2000000));
        }
コード例 #5
0
 public ReservationService(IReservationRepository repository, ICarService carService, ICarModelService carModelService, ICarCategoryService carCategoryService, IRentalContractService rentalContractService)
 {
     _repository            = repository;
     _carService            = carService;
     _carModelService       = carModelService;
     _carCategoryService    = carCategoryService;
     _rentalContractService = rentalContractService;
 }
コード例 #6
0
ファイル: CarController.cs プロジェクト: teofant/CarService
 public CarController(ICarService carService, ICarBrandService carBrandService,
                      ICarModelService carModelService, IOwnerService ownerService)
 {
     _carService      = carService;
     _carBrandService = carBrandService;
     _carModelService = carModelService;
     _ownerService    = ownerService;
 }
コード例 #7
0
 public CarModelController(
     ICarModelService carModelService,
     IManufacturerService manufacturerService,
     IQualityClassService qualityClassService,
     ICarService carService)
 {
     _carModelService     = carModelService;
     _manufacturerService = manufacturerService;
     _qualityClassService = qualityClassService;
     _carService          = carService;
 }
コード例 #8
0
 public CarConfiguratorController(
     ILogger <CarModelController> logger,
     ICarModelService carModelService,
     ICarModelOptionService carModelOptionService,
     ICarConfiguratorService carConfiguratorService)
 {
     _logger                 = logger;
     _carModelService        = carModelService;
     _carModelOptionService  = carModelOptionService;
     _carConfiguratorService = carConfiguratorService;
 }
コード例 #9
0
 public CarConfiguratorService(
     ICarModelService carModelService,
     ICarModelOptionService carModelOptionService,
     IProductRepository productRepository,
     IProductOptionRepository productOptionRepository,
     ICarConfigUserConfigurationRepository carConfigUserConfigurationRepository)
 {
     _carModelService         = carModelService;
     _carModelOptionService   = carModelOptionService;
     _productRepository       = productRepository;
     _productOptionRepository = productOptionRepository;
     _carConfigUserConfigurationRepository = carConfigUserConfigurationRepository;
 }
コード例 #10
0
 public CarsController(
     ICarModelService carModelService,
     IAsyncRepository <Image> imageRepository,
     IAsyncRepository <Thumbnail> thumbnailRepository,
     IAsyncRepository <Repair> repairRepository,
     IImageService imageService,
     ICarService carService)
 {
     _carModelService     = carModelService;
     _imageRepository     = imageRepository;
     _thumbnailRepository = thumbnailRepository;
     _repairRepository    = repairRepository;
     _imageService        = imageService;
     _carService          = carService;
 }
コード例 #11
0
 public AuctionHouseUpcomingSalesController(
      IAuctionHouseAddEditVehicleService auctionHouseAddEditVehicleService,
      IAuctionHouseSaleService auctionHouseSaleService,
      IAuctionHouseService auctionHouseService,
      IMakeService makeService,
      ICarModelService carModelService,
     IAspNetUserService aspNetUserService
      )
 {
     _auctionHouseAddEditVehicleService = auctionHouseAddEditVehicleService;
     _auctionHouseSaleService = auctionHouseSaleService;
     _auctionHouseService = auctionHouseService;
     _makeService = makeService;
     _carModelService = carModelService;
     _aspNetUserService = aspNetUserService;
 }
コード例 #12
0
ファイル: HomeController.cs プロジェクト: gitsnet/AutoBid
 public HomeController(
     ICarSellerVehicleInfoService carSellerVehicleInfoService,
      ICarSellerVehicleImagesService carSellerVehicleImagesService, ICarModelService carModelService, IMakeService makeService, ICarSellerVehicleFuelTypeService carSellerVehicleFuelTypeService, IBodyTypeService bodyTypeService, IFuelTypeService fuelTypeService, ITransmissionTypeService transmissionTyeService, ICarSellerTypeService carSellerTyeService, ICarSellingOnService carSellingOnService, ICarSellerMoreDetailService carSellerMoreDetailService,
      IAuctionHouseAddEditVehicleService auctionHouseAddEditVehicleService,
     IAuctionHouseSaleService auctionHouseSaleService)
 {
     _carSellerVehicleInfoService = carSellerVehicleInfoService;
     _carSellerVehicleImagesService = carSellerVehicleImagesService;
     _carSellerVehicleFuelTypeService = carSellerVehicleFuelTypeService;
     _carModelService = carModelService;
     _makeService = makeService;
     _bodyTypeService = bodyTypeService;
     _fuelTypeService = fuelTypeService;
     _transmissionTyeService = transmissionTyeService;
     _carSellerTyeService = carSellerTyeService;
     _carSellingOnService = carSellingOnService;
     _carSellerMoreDetailService = carSellerMoreDetailService;
     _auctionHouseAddEditVehicleService = auctionHouseAddEditVehicleService;
     _auctionHouseSaleService = auctionHouseSaleService;
 }
コード例 #13
0
 public CarDetailsController(ICarSellerVehicleInfoService carsellervehicleinfoService, 
     ICarSellerVehicleImagesService carSellerVehicleImagesService, 
     ICarSellerVehicleFuelTypeService carSellerVehicleFuelTypeService, 
     IAuctionHouseAddEditVehicleService auctionHouseAddEditVehicleService,
     ITransmissionTypeService transmissionTypeService,
     IFuelTypeService fuelTypeService,
     IMakeService makeService,
     ICarModelService carModelService,
     IAuctionHouseCarSellingVehicleImagesService auctionHouseCarSellingVehicleImagesService
     )
 {
     _carsellervehicleinfoService = carsellervehicleinfoService;
     _carSellerVehicleImagesService = carSellerVehicleImagesService;
     _carSellerVehicleFuelTypeService = carSellerVehicleFuelTypeService;
     _auctionHouseAddEditVehicleService = auctionHouseAddEditVehicleService;
     _transmissionTypeService=transmissionTypeService;
     _fuelTypeService=fuelTypeService;
     _makeService = makeService;
     _carModelService = carModelService;
     _auctionHouseCarSellingVehicleImagesService = auctionHouseCarSellingVehicleImagesService;
 }
コード例 #14
0
ファイル: CarController.cs プロジェクト: wyh0395/AMS
 public CarController()
 {
     _carService      = new CarService();
     _customerService = new CustomerService();
     _carModelService = new CarModelService();
 }
コード例 #15
0
 public PartsDictionaryController()
 {
     _partsDictionaryService = new PartsDictionaryService();
     _carModelService        = new CarModelService();
     _partsTypeService       = new PartsTypeService();
 }
コード例 #16
0
 public CarController(CarContext context, ICarModelService service)
 {
     _context = context;
     _service = service;
 }
コード例 #17
0
ファイル: OrderController.cs プロジェクト: Farlier/Final-Task
 public OrderController(IOrderService orderService, ICarService carService, ICarModelService carModelService)
 {
     _orderService    = orderService;
     _carService      = carService;
     _carModelService = carModelService;
 }
コード例 #18
0
ファイル: CarModelController.cs プロジェクト: wyh0395/AMS
 public CarModelController()
 {
     _carModelService = new CarModelService();
 }
コード例 #19
0
 public CarModelServiceTests()
 {
     _context         = InterviewContextFactory.Create();
     _mapper          = AutoMapperFactory.Create();
     _carModelService = new CarModelService(_context, _mapper);
 }
コード例 #20
0
 public IndexModel(ILogger <IndexModel> logger, ICarModelService carFileModelService, PredictionEnginePool <ModelInput, ModelOutput> predictionEnginePool)
 {
     _logger               = logger;
     _carModelService      = carFileModelService.GetDetails();
     CarMakeSL             = new SelectList(_carModelService, "Id", "Model", default, "Make");
コード例 #21
0
 public CarModelController(ICarModelService carModelService)
 {
     this.carModelService = carModelService;
 }
コード例 #22
0
ファイル: CarController.cs プロジェクト: Farlier/Final-Task
 public CarController(ICarService carService, ICarModelService carModelService)
 {
     _carService      = carService;
     _carModelService = carModelService;
 }
コード例 #23
0
 public IndexModel(IWebHostEnvironment env, ILogger <IndexModel> logger, ICarModelService carFileModelService)
 {
     _env             = env;
     _logger          = logger;
     _carModelService = carFileModelService.GetDetails();
     CarMakeSL        = new SelectList(_carModelService, "Id", "Model", default, "Make");
コード例 #24
0
 public IndexModel(ILogger <IndexModel> logger, ICarModelService carFileModelService)
 {
     _logger          = logger;
     _carModelService = carFileModelService.GetDetails();
     CarMakeSL        = new SelectList(_carModelService, "Id", "Model", default, "Make");