Esempio n. 1
0
 public SupplyService(ISupplyQueryRepository supplyQueryRepository,
                      ISupplyCommandRepository supplyCommandRepository,
                      SupplyContext supplyContext,
                      IStoreService storeService,
                      IIdentityService identityService,
                      IMapper mapper)
 {
     _supplyQueryRepository   = supplyQueryRepository ?? throw new ArgumentNullException(nameof(supplyQueryRepository));
     _supplyCommandRepository = supplyCommandRepository ?? throw new ArgumentNullException(nameof(supplyCommandRepository));
     _supplyContext           = supplyContext ?? throw new ArgumentNullException(nameof(supplyContext));
     _storeService            = storeService ?? throw new ArgumentNullException(nameof(storeService));
     _identityService         = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public FlowerRepository(SupplyContext dbContext)
 {
     supplyDbContext = dbContext;
 }
 public FlowerPlantationRepository(SupplyContext supplyContext)
 {
     supplyDbContext = supplyContext;
 }
Esempio n. 4
0
 public SupplyCommandRepository(SupplyContext supplyContext, IMapper mapper)
 {
     _supplyContext = supplyContext ?? throw new ArgumentNullException(nameof(supplyContext));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public SupplyRepository(SupplyContext supplyContext)
 {
     supplyDbContext = supplyContext;
 }
Esempio n. 6
0
 public UnitOfWork(SupplyContext dbContext)
 {
     supplyDbContext = dbContext;
 }
 public FlowerWarehouseRepository(SupplyContext supplyContext)
 {
     supplyDbContext = supplyContext;
 }
Esempio n. 8
0
 public SupplyQueryRepository(SupplyContext supplyContext)
 {
     _supplyContext = supplyContext ?? throw new ArgumentNullException(nameof(supplyContext));
 }