Esempio n. 1
0
 public DataUnitOfWork(
     IGenericRepository <Client> clientRepository,
     IGenericRepository <Product> productRepository,
     IGenericRepository <Manager> managerRepository,
     ISoldProductRepository soldProductRepository)
 {
     ClientRepository      = clientRepository ?? throw new ArgumentNullException(nameof(clientRepository));
     ProductRepository     = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     ManagerRepository     = managerRepository ?? throw new ArgumentNullException(nameof(managerRepository));
     SoldProductRepository = soldProductRepository ?? throw new ArgumentNullException(nameof(soldProductRepository));
 }
Esempio n. 2
0
 public SoldProductService(ISoldProductRepository soldProductsRepository, IUnitOfWork unitOfWork)
 {
     this.soldProductsRepository = soldProductsRepository;
     this.unitOfWork             = unitOfWork;
 }