예제 #1
0
        public UnitOfWork(ICarRepository carRepository, 
			IEquipmentRepository equipmentRepository,
			IManufacturerRepository manufacturerRepository,
			EFDbContext context)
        {
            CarRepository = carRepository;
            EquipmentRepository = equipmentRepository;
            ManufacturerRepository = manufacturerRepository;
            this.context = context;
        }
예제 #2
0
 // GET: /Admin/ProductType/
 public ProductController(IProductRepository _productRepository,
     IProductTypeRepository _productTypeRepository,
     IDistributorRepository _distributorRepository,
     IManufacturerRepository _manufacturerRepository,
     IProductStatusRepository _productStatusRepository,
     IProductStatusMapRepository _productStatusMapRepository,
     IProductLabelRepository _productLabelRepository)
 {
     this.baseRepository = _productRepository;
     this.productRepository = _productRepository;
     this.productTypeRepository = _productTypeRepository;
     this.distributorRepository = _distributorRepository;
     this.manufacturerRepository = _manufacturerRepository;
     this.productStatusRepository = _productStatusRepository;
     this.productStatusMapRepository = _productStatusMapRepository;
     this.productLabelRepository = _productLabelRepository;
 }
예제 #3
0
 public GetManufacturersPageCommandHandler(IManufacturerRepository manufacturerRepository, IMapper mapper)
 {
     _manufacturerRepository = manufacturerRepository;
     _mapper = mapper;
 }
 public CreateProductCommandHandler(IProductRepository productRepository, ICategoryRepository categoryRepository,
                                    IManufacturerRepository manufacturerRepository, IMapper mapper, IMediator mediator,
                                    IDomainEventsService domainEventsService) : base(productRepository, categoryRepository,
                                                                                     manufacturerRepository, mapper, mediator, domainEventsService)
 {
 }
 public ManufacturerService(IManufacturerRepository manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 public VehicleMakeController(IManufacturerRepository makeRepo)
 {
     _makeRepo = makeRepo;
 }
예제 #7
0
 public ManufacturerController(IManufacturerRepository manufacturerRepo, IComponentRepository componentRepo)
 {
     IManufacturerRepo = manufacturerRepo;
     IComponentRepo    = componentRepo;
 }
 public OldDescriptionManufacturerFacadeService(IReviewService reviewService, IDateService dateService, IManufacturerRepository manufacturerRepository, IManufacturerFactoryCreation manufacturerFactoryCreation)
 {
     _reviewService               = reviewService;
     _dateService                 = dateService;
     _manufacturerRepository      = manufacturerRepository;
     _manufacturerFactoryCreation = manufacturerFactoryCreation;
 }
 public ManufacturerController(IUow uow, IManufacturerRepository repository, ManufacturerHandler handler) : base(uow)
 {
     _uow        = uow;
     _repository = repository;
     _handler    = handler;
 }
예제 #10
0
 public ManufacturerController(IManufacturerRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
 public VehiclesController(IVehicleRepository repo, IManufacturerRepository makeRepo)
 {
     _makeRepo = makeRepo;
     _repo     = repo;
 }
예제 #12
0
 public ManufacturerController(IManufacturerRepository repository)
 {
     this.repository = repository;
 }
예제 #13
0
 public ManufacturersController(IManufacturerRepository manufacturerRepository,
                                IMapper mapper)
 {
     _manufacturerRepository = manufacturerRepository;
     _mapper = mapper;
 }
예제 #14
0
 public CartController(IProductRepository productRepository, IManufacturerRepository manufacturerRepository, ApplicationDbContext context)
 {
     _context                = context;
     _productRepository      = productRepository;
     _manufacturerRepository = manufacturerRepository;
 }
 public ItemSearchReadModelConversionService(IItemCategoryRepository itemCategoryRepository,
                                             IManufacturerRepository manufacturerRepository)
 {
     this.itemCategoryRepository = itemCategoryRepository;
     this.manufacturerRepository = manufacturerRepository;
 }
        public void Setup()
        {
            //var sampleDB = JsonConvert.DeserializeObject<Vehicles>(Sampledata.VehiclesJson);
            var sampleDB = new Vehicles();
            var tmp = JsonConvert.DeserializeAnonymousType(Sampledata.VehiclesJson, new { planes = new List<Plane>(), cars = new List<Car>() });
            sampleDB.AddRange(tmp.cars);
            sampleDB.AddRange(tmp.planes);

            var sampleManufactures = JsonConvert.DeserializeObject<List<Manufacturer>>(Sampledata.Manufacturers);

            //var sampleDB = JsonConvert.DeserializeObject<Vehicles>(Sampledata.VehiclesJson);
            var sampleDB = new Vehicles();
            var tmp = JsonConvert.DeserializeAnonymousType(Sampledata.VehiclesJson, new { planes = new List<Plane>(), cars = new List<Car>() });
            sampleDB.AddRange(tmp.cars);
            sampleDB.AddRange(tmp.planes);

            _manufacturerRepository = new ManufacturerRepository(sampleDB, sampleManufactures);
        }
 public ManufacturerValidationService(IManufacturerRepository manufacturerRepository)
 {
     this.manufacturerRepository = manufacturerRepository;
 }
예제 #18
0
 public ManufacturerService(IManufacturerRepository ManufacturerRepository) : base(ManufacturerRepository)
 {
     _ManufacturerRepository = ManufacturerRepository;
 }
예제 #19
0
 public ManufacturerService(IUnitOfWork unitOfWork, IManufacturerRepository manufacturerRepository) : base(unitOfWork, manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 public ManufacturerController(IManufacturerRepository <Manufacturer> manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 public TurbineTypeService(ITurbineTypeRepository turbineTypeRepository, IManufacturerRepository manufacturerRepository)
 {
     _turbineTypeRepository  = turbineTypeRepository;
     _manufacturerRepository = manufacturerRepository;
 }
예제 #22
0
 public ManufacturerExistsByNameRequestHandler(IManufacturerRepository manufacturerRepository)
 {
     this.manufacturerRepository = manufacturerRepository;
 }
예제 #23
0
 public DataManager(IManufacturerRepository manufacturerRepository, ICountryRepository countryRepository, IModelRepository modelRepository)
 {
     ModelRepository        = modelRepository;
     ManufacturerRepository = manufacturerRepository;
     CountryRepository      = countryRepository;
 }
 public ProductModelsController(IProductRepository productRepository, IProductModelRepository productModelRepository, IManufacturerRepository manufacturerRepository)
 {
     this.productRepository      = productRepository;
     this.productModelRepository = productModelRepository;
     this.manufacturerRepository = manufacturerRepository;
 }
 public AdminController(IProductRepository productRepository, IManufacturerRepository manufacturerRepository)
 {
     this._productRepository      = productRepository;
     this._manufacturerRepository = manufacturerRepository;
 }
예제 #26
0
 public CreateManufacturerCommandHandler(IManufacturerRepository manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 public EquipmentHandler(IEquipmentRepository repository, IDeviceModelRepository deviceModelRepository, IUserRepository userRepository, IManufacturerRepository manufacturerRepository)
 {
     _repository             = repository;
     _deviceModelRepository  = deviceModelRepository;
     _userRepository         = userRepository;
     _manufacturerRepository = manufacturerRepository;
 }
예제 #28
0
 public AllActiveManufacturersQueryHandler(IManufacturerRepository manufacturerRepository)
 {
     this.manufacturerRepository = manufacturerRepository;
 }
예제 #29
0
 public CarController(IMapper mapper, ICarRepository carRepo, IManufacturerRepository manufacturerRepo)
 {
     this.mapper           = mapper;
     this.carRepo          = carRepo;
     this.manufacturerRepo = manufacturerRepo;
 }
예제 #30
0
 public ManufacturerBusiness(IManufacturerRepository manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 public DeviceModelHandler(IDeviceModelRepository repository, IManufacturerRepository manufacturerRepository)
 {
     _repository             = repository;
     _manufacturerRepository = manufacturerRepository;
 }
예제 #32
0
 /// <summary>
 /// Constructor whose purpose is to
 /// set _manufacturerRepository variable.
 /// </summary>
 /// <param name="manufacturerRepository">
 /// Existing IManufacturerRepository object.
 /// </param>
 public ManufacturerLogic(IManufacturerRepository manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
 //
 // GET: /Admin/ProductManufacturer/
 public ProductManufacturerController(IManufacturerRepository _manufacturerRepository)
 {
     this.baseRepository = _manufacturerRepository;
     this.manufacturerRepository = _manufacturerRepository;
 }
예제 #34
0
        public ManufacturersApi(IOptions <Settings> optionsAccessor, IManufacturerRepository manufacturerRepository)
        {
            this._optionsAccessor = optionsAccessor;

            this._manufacturerRepository = manufacturerRepository;
        }