示例#1
0
 public AccessService(IUserRepository userRepo, IDoorRepository doorRepository, IProfileAccessRepository profileAccessRepository, IUserAccessLogRepository userAccessLog)
 {
     _userRepo                = userRepo;
     _doorRepository          = doorRepository;
     _profileAccessRepository = profileAccessRepository;
     _userAccessLog           = userAccessLog;
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 public void Dispose()
 {
     if (this.doorRepository != null)
     {
         this.doorRepository = null;
     }
 }
 public DogDoorOperations(
     IDoorRepository doorDbRepository,
     IUnitOfWork uow,
     IOptionsMonitor <AppSettings> settings)
 {
     _doorDbRepository = doorDbRepository;
     _uow         = uow;
     _appSettings = settings;
 }
 public IntimidatorWorkDayController(IDoorRepository _doorRepository
                                     , IintimidatorWorkdayRepository _intimidatorWorkdayRepository
                                     , IintimidatorRepository _intimidatorRepository
                                     , IDistributedCache _distributedCache
                                     )
 {
     this._doorRepository = _doorRepository ?? throw new ArgumentNullException(nameof(_doorRepository));;
     this._intimidatorWorkdayRepository = _intimidatorWorkdayRepository ?? throw new ArgumentNullException(nameof(_intimidatorWorkdayRepository));;
     this._intimidatorRepository        = _intimidatorRepository ?? throw new ArgumentNullException(nameof(_intimidatorRepository));
     this._distributedCache             = _distributedCache ?? throw new ArgumentNullException(nameof(_distributedCache));
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="doorRepository"></param>
 /// <param name="userRepository"></param>
 /// <param name="orderRepository"></param>
 public DoorService(
     IDoorRepository doorRepository,
     IUserRepository userRepository,
     IOrderRepository orderRepository,
     IColorRepository colorRepository)
 {
     _doorRepository  = doorRepository;
     _userRepository  = userRepository;
     _orderRepository = orderRepository;
     _colorRepository = colorRepository;
 }
示例#6
0
 public IntimidatorIntimidationsSummery(IDoorRepository _doorRepository
                                        , IintimidatorWorkdayRepository _intimidatorWorkdayRepository
                                        , IintimidatorRepository _intimidatorRepository
                                        , IDistributedCache _distributedCache
                                        , int intimidatorId)
 {
     this._doorRepository = _doorRepository ?? throw new ArgumentNullException(nameof(_doorRepository));;
     this._intimidatorWorkdayRepository = _intimidatorWorkdayRepository ?? throw new ArgumentNullException(nameof(_intimidatorWorkdayRepository));;
     this._intimidatorRepository        = _intimidatorRepository ?? throw new ArgumentNullException(nameof(_intimidatorRepository));
     this._distributedCache             = _distributedCache ?? throw new ArgumentNullException(nameof(_distributedCache));
     this.intimidatorId = intimidatorId;
 }
示例#7
0
 public CurrentEmployeeOfTheMonth(IDoorRepository _doorRepository
                                  , IintimidatorWorkdayRepository _intimidatorWorkdayRepository
                                  , IintimidatorRepository _intimidatorRepository
                                  , IDistributedCache _distributedCache
                                  , IMapper _mapper
                                  )
 {
     this._doorRepository = _doorRepository ?? throw new ArgumentNullException(nameof(_doorRepository));;
     this._intimidatorWorkdayRepository = _intimidatorWorkdayRepository ?? throw new ArgumentNullException(nameof(_intimidatorWorkdayRepository));;
     this._intimidatorRepository        = _intimidatorRepository ?? throw new ArgumentNullException(nameof(_intimidatorRepository));
     this._distributedCache             = _distributedCache ?? throw new ArgumentNullException(nameof(_distributedCache));
     this._mapper = _mapper ?? throw new ArgumentNullException(nameof(_mapper));
 }
示例#8
0
 public DoorController(IDoorRepository DoorRepository, IRoomRepository RoomRepository)
 {
     if (DoorRepository == null)
     {
         throw new ArgumentNullException(nameof(DoorRepository));
     }
     if (RoomRepository == null)
     {
         throw new ArgumentNullException(nameof(RoomRepository));
     }
     this.doorRepository = DoorRepository;
     this.roomRepository = RoomRepository;
 }
示例#9
0
 public RandomDoorLocker(ILockRepository LockRepository, IDoorRepository DoorRepository, IRoomRepository RoomRepository)
 {
     if (LockRepository == null)
     {
         throw new ArgumentNullException(nameof(LockRepository));
     }
     if (DoorRepository == null)
     {
         throw new ArgumentNullException(nameof(DoorRepository));
     }
     if (RoomRepository == null)
     {
         throw new ArgumentNullException(nameof(RoomRepository));
     }
     this.lockRepository = LockRepository;
     this.doorRepository = DoorRepository;
     this.roomRepository = RoomRepository;
 }
示例#10
0
 public LockController(ILockRepository LockRepository, IDoorRepository DoorRepository, ILockTypeRepository LockTypeRepository)
 {
     if (LockRepository == null)
     {
         throw new ArgumentNullException(nameof(LockRepository));
     }
     if (DoorRepository == null)
     {
         throw new ArgumentNullException(nameof(DoorRepository));
     }
     if (LockTypeRepository == null)
     {
         throw new ArgumentNullException(nameof(LockTypeRepository));
     }
     this.lockRepository     = LockRepository;
     this.doorRepository     = DoorRepository;
     this.lockTypeRepository = LockTypeRepository;
 }
示例#11
0
 public DoorRepositoryTests()
 {
     _dbContext = ApplicationDbContextFactory.Create();
     _repo      = new DoorRepository(_dbContext);
 }
示例#12
0
 public DoorHandler(GridRepository gridRepository)
 {
     this.gridHandler    = new GridHandler();
     this.doorRepository = new DoorRepository(gridRepository);
 }
示例#13
0
 public DoorsController(IDoorRepository _doorRepository, IMapper _mapper)
 {
     this._doorRepository = _doorRepository ?? throw new ArgumentNullException(nameof(_doorRepository));;
     this._mapper         = _mapper ?? throw new ArgumentNullException(nameof(_mapper));
 }
 public UnitOfWork(ILogRepository logRepository, IDoorRepository doorRepository, ICpuRepository cpuRepository)
 {
     Logs          = logRepository;
     Door          = doorRepository;
     CpuTemprature = cpuRepository;
 }
 /// <summary>
 /// Constructor for the door repository.
 /// </summary>
 /// <param name="doorRepo">The IDoorRepository dependency.</param>
 /// <param name="buildingRepo">The IBuildingRepository dependency.</param>
 public DoorController(IDoorRepository doorRepo, IBuildingRepository buildingRepo)
 {
     doorRepository     = doorRepo;
     buildingRepository = buildingRepo;
 }
示例#16
0
 public HomeController(IDoorRepository doorRepository)
 {
     this.repository = doorRepository;
 }
 public DoorController(ILogger <DoorController> logger,
                       IDoorRepository repository)
 {
     _logger     = logger;
     _repository = repository;
 }
示例#18
0
 public ChecklistService(IDataUnitOfWork dataUnitOfWork)
 {
     _checklistRepository = dataUnitOfWork.ChecklistRepository;
     _doorRepository      = dataUnitOfWork.DoorRepository;
     _workorderTemplateHardwareCollectionRepository = dataUnitOfWork.WorkorderTemplateHardwareCollectionRepository;
 }
示例#19
0
        /// <summary>
        ///
        /// </summary>
        public DoorService() : base()
        {
            RepositoryContext context = new RepositoryContext();

            this.doorRepository = new DoorRepository(context);
        }
 public AdminController(IDoorRepository repo)
 {
     repository = repo;
 }
示例#21
0
 public DoorController(IDoorRepository doorRepository)
 {
     _doorRepository = doorRepository;
 }
 public ShoppingCartController(IDoorRepository doorRepository, ShoppingCart shoppingCart)
 {
     _doorRepository = doorRepository;
     _shoppingCart   = shoppingCart;
 }
 public DoorController(ICategoryRepository categoryRepository, IDoorRepository doorRepository)
 {
     _categoryRepository = categoryRepository;
     _doorRepository     = doorRepository;
 }
示例#24
0
 public BarkRecogniser(IDoorRepository doorDbRepository)
 {
     _doorDbRepository = doorDbRepository;
 }