예제 #1
0
 public ProductController(IProductService productService, IConfiguration configuration,
                          IBillService billService,
                          IProductCategoryService productCategoryService, ISizeService sizeService, IColorService colorService)
 {
     _productService         = productService;
     _productCategoryService = productCategoryService;
     _sizeService            = sizeService;
     _colorService           = colorService;
     _configuration          = configuration;
     _billService            = billService;
 }
예제 #2
0
 public ColorsController(IColorService entityService)
 {
     _entityService = entityService;
 }
예제 #3
0
 public ColorsController(IColorService colorService, IMapper mapper)
 {
     _colorService = colorService;
     _mapper       = mapper;
 }
 public ColorsController(IColorService colorServices)
 {
     _colorServices = colorServices;
 }
예제 #5
0
 public ColorController(IColorService colorService, IProductService productService)
 {
     _colorService   = colorService;
     _productService = productService;
 }
예제 #6
0
 public CarManager(ICarDal carDal, IColorService colors)
 {
     _CarDal       = carDal;
     _colorService = colors;
 }
예제 #7
0
 public ColorsController(IColorService colorService) // Bağımlılıkları minimize ederek, Business katmanı soyutu eklenir
 {
     _colorService = colorService;
 }
예제 #8
0
 public ColorsController(IColorService colorManager)
 {
     _colorManager = colorManager;
 }
예제 #9
0
 public ColorController(IColorService colorService, ColorModelFactory colorModelFactory)
 {
     _colorService = colorService;
     _colorModelFactory = colorModelFactory;
 }
예제 #10
0
 public SearchController(IEventService eventService, IElasticClient elasticClient, IColorService colorService, ICalendarService calendarService)
 {
     this.eventService    = eventService;
     this.elasticClient   = elasticClient;
     this.colorService    = colorService;
     this.calendarService = calendarService;
 }
예제 #11
0
 public ColorServiceTests()
 {
     _service = new ColorService(
         new BricklinkCatalogApi(),
         new AppDataService());
 }
예제 #12
0
 public ProductController(IProductService productService, IProductCategoryService productCategoryService,
                          IConfiguration configuration, ISizeService sizeService, IColorService colorService,
                          ITagService tagService, IBlogService blogService, IAdvertisementService advertisementService, UserManager <AppUser> userManager)
 {
     this._productCategoryService = productCategoryService;
     this._advertisementService   = advertisementService;
     this._productService         = productService;
     this._configuration          = configuration;
     this._colorService           = colorService;
     this._sizeService            = sizeService;
     this._tagService             = tagService;
     this._blogService            = blogService;
     this._userManager            = userManager;
 }
예제 #13
0
 public RandomColorController(IColorService colorService)
 {
     _colorService = colorService;
 }
 public ColorController(IColorService colorService)
 {
     _colorService = colorService;
 }
예제 #15
0
 public ColorController(IColorService service)
 {
     _service = service;
 }
예제 #16
0
 public ColorsController(IMapper mapper, IColorService colorService)
 {
     _mapper       = mapper;
     _colorService = colorService;
 }
예제 #17
0
 public ColorController(IColorService IColor)
 {
     Color = IColor;
 }
예제 #18
0
 public CarManager(ICarDal carDal, IBrandService brandService, IColorService colorService)
 {
     _carDal       = carDal;
     _brandService = brandService;
     _colorService = colorService;
 }
 public List <Painting> GetAllPaintings(IColorService colorService)
 {
     return(ConvertLinesToPaintings(File.ReadAllLines(FilePath), 1, File.ReadAllLines(FilePath).Length - 1, colorService));
 }
예제 #20
0
 public ColorsController(IColorService colorService, ICarService carService)
 {
     _colorService = colorService;
     _carService   = carService;
 }
        public List <Painting> GetPaintingsOfSeason(int season, IColorService colorService)
        {
            List <Painting> paintings = ConvertLinesToPaintings(File.ReadAllLines(FilePath), 1, File.ReadAllLines(FilePath).Length - 1, colorService);

            return(paintings.Where(p => p.Season == season).ToList());
        }
예제 #22
0
 public FrmRenkEkle()
 {
     InitializeComponent();
     _colorService = new ColorManager(new EfColorDal());
 }
        public Painting GetPainting(int id, IColorService colorService)
        {
            Painting painting = ConvertLinesToPaintings(File.ReadAllLines(FilePath), id, 1, colorService).FirstOrDefault();

            return(painting);
        }
예제 #24
0
 public AdminController(IFuelTypeService fuelTypeService, IColorTypeService colorTypeService,
                        IBodyTypeService bodyTypeService,
                        IGearTypeService gearTypeService, IModelService modelService, IUserService userService, ICarService carService, IBrandService brandService, IExtraService extraService, IColorService colorService)
 {
     this.brandService     = brandService;
     this.fuelTypeService  = fuelTypeService;
     this.colorTypeService = colorTypeService;
     this.bodyTypeService  = bodyTypeService;
     this.gearTypeService  = gearTypeService;
     this.modelService     = modelService;
     this.userService      = userService;
     this.carService       = carService;
     this.extraService     = extraService;
     this.colorService     = colorService;
 }
        private List <Painting> ConvertLinesToPaintings(string[] csvLines, int startLine, int totalLines, IColorService colorService)
        {
            csvLines = csvLines.AsSpan(startLine, totalLines).ToArray();

            List <Painting> paintings = new List <Painting>();

            foreach (var csvLine in csvLines)
            {
                string[] csvPainting = csvLine.Split(',');
                string[] csvColors   = csvPainting
                                       .AsSpan(7, csvPainting.Length - 7).ToArray();
                csvColors[0] = csvColors[0].TrimStart('/', '"');
                csvColors[csvColors.Length - 1] = csvColors.Last().TrimEnd('"', '/');

                List <Color> colors = new List <Color>();
                foreach (var csvColor in csvColors)
                {
                    colors.Add(colorService.GetColor(csvColor));
                }

                Painting painting = new Painting
                {
                    Id            = Int32.TryParse(csvPainting[0], out int i) ? i : -1,
                    Title         = csvPainting[1],
                    Season        = Int32.TryParse(csvPainting[2], out int s) ? s : 0,
                    Episode       = Int32.TryParse(csvPainting[3], out int e) ? e : 0,
                    ThumbnailFile = csvPainting[4],
                    Description   = csvPainting[5],
                    VideoUrl      = csvPainting[6],
                    Colors        = colors
                };
                paintings.Add(painting);
            }

            return(paintings);
        }
    }
예제 #26
0
 public ColorController(IColorService colorservice, IMemoryCache cache, IMapper mapper)
 {
     _colorService = colorservice;
     _cache        = cache;
     _mapper       = mapper;
 }
예제 #27
0
 public ColoresController(IColorService colorService, IMapper mapper, IUriService uriService)
 {
     _colorService = colorService;
     _mapper       = mapper;
     _uriService   = uriService;
 }
예제 #28
0
 public EventPublisherViewModel(IColorService colorService)
 {
     _colorService      = colorService;
     SelectedColorGroup = _colorService.GetDefaultColorGroup();
 }
예제 #29
0
 public ColorsController(IColorService Colorservice)
 {
     _Colorservice = Colorservice;
 }
예제 #30
0
 public ColorsController(IColorService colorService)
 {
     _colorService = colorService;
 }
예제 #31
0
 public HomeController(IColorService colorService)
 {
     _colorService = colorService;
 }
예제 #32
0
 public ColorHub(IColorService colorService)
 {
     _colorService = colorService;
 }
예제 #33
0
 public CarsController(ICarService carManager, IBrandService brandService, IColorService colorService)
 {
     _carManager   = carManager;
     _colorService = colorService;
     _brandService = brandService;
 }