public EntityFrameworkCarRentalRepository(ILogger logger,
                                           IEntityRepository entityRepository,
                                           IRightRepository rightRepository,
                                           ApplicationContext dataContext)
 {
     if (logger == null)
     {
         throw new ArgumentNullException("logger");
     }
     if (entityRepository == null)
     {
         throw new ArgumentNullException("entityRepository");
     }
     if (rightRepository == null)
     {
         throw new ArgumentNullException("rightRepository");
     }
     if (dataContext == null)
     {
         throw new ArgumentNullException("dataContext");
     }
     _logger           = logger;
     _entityRepository = entityRepository;
     _rightRepository  = rightRepository;
     _dataContext      = dataContext;
     _lock             = new ReaderWriterLockSlim();
     _rentalByCar      = new Dictionary <Guid, List <CarRental> >();
     _rentalByDriver   = new Dictionary <Guid, List <CarRental> >();
 }
 public RightService
 (
     IRightRepository rightRepository
 )
 {
     this.rightRepository = rightRepository;
 }
Example #3
0
 public RightService(IRightRepository rightRepository)
 {
     if (rightRepository == null)
     {
         throw new ArgumentNullException("rightRepository");
     }
     _rightRepository = rightRepository;
 }
Example #4
0
 public RightsController(IRightRepository repo)
 {
     this.repo = repo;
 }
 public RightService(IRightRepository _Repository)
 {
     this._Repository = _Repository;
 }
Example #6
0
 public LoginService(IUserRepository UserRepository, ISettingRepository SettingRepository, IRightRepository RightRepository)
 {
     this._UserRepository    = UserRepository;
     this._SettingRepository = SettingRepository;
     this._RightRepository   = RightRepository;
 }
Example #7
0
 public RightService(IRightRepository RightRepository, IUnitOfWork unitOfWork)
 {
     this.RightRepository = RightRepository;
     this.unitOfWork      = unitOfWork;
 }
 public RightAppService(IRightRepository repository)
 {
     _repository = repository;
 }
Example #9
0
 public RightService(IRightRepository rightRepository)
     : base(rightRepository)
 {
 }
Example #10
0
 public RightService(IUnitOfWork unitOfWork, IRightRepository rightRepository, IMapper mapper)
 {
     _unitOfWork      = unitOfWork;
     _rightRepository = rightRepository;
     _mapper          = mapper;
 }