public DiveLocationService(IEagerFetchingRepository <DiveLocationDetail> diveLocationDetailRepository, IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <DiveLocation> diveLocationRepository, ILogger <DiveLocationService> logger, IExceptionManager exceptionManager)
     : base(unitOfWorkScopeFactory, diveLocationRepository, logger, exceptionManager)
 {
     _diveLocationDetailRepository               = diveLocationDetailRepository;
     _diveLocationRepository                     = diveLocationRepository;
     _diveLocationRepository.DataStoreName       = DataStoreDefinitions.Samples;
     _diveLocationDetailRepository.DataStoreName = DataStoreDefinitions.Samples;
 }
Esempio n. 2
0
        public CustomerService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <Customer> repository, ILogger <CustomerService> logger, IExceptionManager exceptionManager)
            : base(unitOfWorkScopeFactory, repository, logger, exceptionManager)
        {
            repository.DataStoreName = "TestDbContext";
            this._repository         = repository;

            this.AddRulesAndValidators();
        }
Esempio n. 3
0
 public OrderRepository(IEagerFetchingRepository <Order> repository) : base(repository)
 {
 }
Esempio n. 4
0
 public UserService(IEagerFetchingRepository <ApplicationUser> userRepository, ILogger <UserService> logger, IExceptionManager exceptionManager) : base(logger, exceptionManager)
 {
     _userRepository = userRepository;
     _userRepository.DataStoreName = DataStoreDefinitions.Samples;
 }
 public EncapsulatedRepository(IEagerFetchingRepository <TEntity> repository)
 {
     _repository = repository;
     _repository.DataStoreName = "TestDbContext";
 }
Esempio n. 6
0
 public TestDomainService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <Customer> repository, ILogger <TestDomainService> logger, IExceptionManager exceptionManager)
     : base(unitOfWorkScopeFactory, repository, logger, exceptionManager)
 {
     repository.DataStoreName = "TestDbContext";
 }
Esempio n. 7
0
 public CrudDomainService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <TEntity> repository, ILogger logger, IExceptionManager exceptionManager)
     : base(logger, exceptionManager)
 {
     this._unitOfWorkScopeFactory = unitOfWorkScopeFactory;
     this._repository             = repository;
 }