public UserValidationApplicationService(IApplicationService applicationService, IUserContextRepository userContextRepository, IUserApplicationRepository userFileRepository) { _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService)); _userContextRepository = userContextRepository ?? throw new ArgumentNullException(nameof(userContextRepository)); _userApplicationRepository = userFileRepository ?? throw new ArgumentNullException(nameof(userFileRepository)); }
public UserApplicationService(IUnitOfWork uow, IMapper mapper) { _uow = uow; _applicationRepo = uow.UserApplicationRepository; _regionRepo = uow.RegionRepository; _proDirectionRepo = uow.ProfessionalDirectionRepository; _mapper = mapper; }
public UnitOfWork(IorwoodDbContext context) { _context = context; Category = new CategoryRepository(_context); Extra = new ExtraRepository(_context); Unit = new UnitRepository(_context); Product = new ProductRepository(_context); OrderHeader = new OrderHeaderRepository(_context); OrderDetails = new OrderDetailsRepository(_context); StockRepository = new StockRepository(_context); RefundHeader = new RefundHeaderRepository(_context); RefundDetail = new RefundDetailRepository(_context); CurrentMovement = new CurrentMovementRepositroy(_context); AccountingBook = new AccountingBookRepository(_context); UserApplication = new UserApplicationRepository(_context); }