Example #1
0
 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));
 }
Example #2
0
 public UserApplicationService(IUnitOfWork uow, IMapper mapper)
 {
     _uow              = uow;
     _applicationRepo  = uow.UserApplicationRepository;
     _regionRepo       = uow.RegionRepository;
     _proDirectionRepo = uow.ProfessionalDirectionRepository;
     _mapper           = mapper;
 }
Example #3
0
 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);
 }