コード例 #1
0
        public GlassesInfoDbFiller(IVehicleGlassesService glasses,
                                   IVehiclesService vehicles,
                                   IVehicleMakesService makes,
                                   IVehicleModelsService models,
                                   IVehicleBodyTypesService bodytypes,
                                   IVehicleGlassImagesService images,
                                   IVehicleGlassCharacteristicsService characteristics,
                                   IVehicleInterchangeablePartsService interchangeableParts,
                                   IVehicleSuperceedsService superceeds,
                                   IVehicleAccessoriesService accessories,
                                   ILogger logger,
                                   IReader reader,
                                   ISolutionBaseConfig solutionConfig
                                   )
        {
            this.Glasses              = glasses;
            this.Vehicles             = vehicles;
            this.Makes                = makes;
            this.Models               = models;
            this.Bodytypes            = bodytypes;
            this.Images               = images;
            this.Characteristics      = characteristics;
            this.InterchangeableParts = interchangeableParts;
            this.Superceeds           = superceeds;
            this.Accessories          = accessories;

            this.Logger         = logger;
            this.Reader         = reader;
            this.SolutionConfig = solutionConfig;

            solutionDirectory         = this.SolutionConfig.GetSolutionPath();
            errorsfilePathToWrite     = $@"{solutionDirectory}\DbFillInErorrs_{DateTime.Now.ToString("ddMMyy_HHmm")}.txt";
            parsedGlassesInfofilePath = $@"{solutionDirectory}\DbFillInInfo_{DateTime.Now.ToString("ddMMyy_HHmm")}.txt";
            defaultJsonFilePathToRead = $@"{solutionDirectory}\ggg\products_test.json";
        }
コード例 #2
0
 public ProductsController(IEmailsService emails, IVehiclesService vehicles, IVehicleGlassesService glasses,
                           IProductQuantitiesService productQuantities, IUsersService users, ILogsService dbLogger)
     : base(dbLogger)
 {
     _vehicles          = vehicles;
     _glasses           = glasses;
     _productQuantities = productQuantities;
     _users             = users;
     _emails            = emails;
 }