public AzureAdController(IAzureAdRepository azureAdRepository,
                          IUserRepository userRepository, IGroupRepository groupRepository,
                          IMapper mapper)
 {
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _groupRepository = groupRepository ??
                        throw new ArgumentNullException(nameof(groupRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
 public GroupsController(IGroupRepository groupRepository, IUserRepository userRepository,
                         ISmartLockRepository smartLockRepository, IAzureAdRepository azureAdRepository, IMapper mapper)
 {
     _groupRepository = groupRepository ??
                        throw new ArgumentNullException(nameof(groupRepository));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _smartLockRepository = smartLockRepository ??
                            throw new ArgumentNullException(nameof(smartLockRepository));
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Example #3
0
 public AccessesController(IAccessService accessService, IUserRepository userRepository,
                           ISmartLockRepository smartLockRepository, IAzureAdRepository azureAdRepository, IMapper mapper)
 {
     _accessService = accessService ??
                      throw new ArgumentNullException(nameof(accessService));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _smartLockRepository = smartLockRepository ??
                            throw new ArgumentNullException(nameof(smartLockRepository));
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Example #4
0
 public AccessService(IAccessRepository accessRepository, IUserRepository userRepository,
                      IGroupRepository groupRepository, ISmartLockRepository smartLockRepository
                      , IAzureAdRepository azureAdRepository, IMapper mapper)
 {
     _accessRepository = accessRepository ??
                         throw new ArgumentNullException(nameof(accessRepository));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _groupRepository = groupRepository ??
                        throw new ArgumentNullException(nameof(groupRepository));
     _smartLockRepository = smartLockRepository ??
                            throw new ArgumentNullException(nameof(smartLockRepository));
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Example #5
0
        public UsersController(IUserRepository userRepository, IGroupRepository groupRepository,
                               IAzureAdRepository azureAdRepository, ISmartLockRepository smartLockRepository,
                               IIdentityService identityService, IMapper mapper)
        {
            _userRepository = userRepository ??
                              throw new ArgumentNullException(nameof(userRepository));
            _groupRepository = groupRepository ??
                               throw new ArgumentNullException(nameof(groupRepository));
            _smartLockRepository = smartLockRepository ??
                                   throw new ArgumentNullException(nameof(smartLockRepository));
            _azureAdRepository = azureAdRepository ??
                                 throw new ArgumentNullException(nameof(_azureAdRepository));

            _identityService = identityService ??
                               throw new ArgumentNullException(nameof(identityService));

            _mapper = mapper ??
                      throw new ArgumentNullException(nameof(mapper));
        }
 public SmartLocksController(ISmartLockRepository smartLockRepository,
                             IUserRepository userRepository, IGroupRepository groupRepository,
                             IAzureAdRepository azureAdRepository, IAccessRepository accessRepository, IMapper mapper,
                             ILogger <SmartLocksController> logger)
 {
     _smartLockRepository = smartLockRepository ??
                            throw new ArgumentNullException(nameof(smartLockRepository));
     _userRepository = userRepository ??
                       throw new ArgumentNullException(nameof(userRepository));
     _groupRepository = groupRepository ??
                        throw new ArgumentNullException(nameof(groupRepository));
     _azureAdRepository = azureAdRepository ??
                          throw new ArgumentNullException(nameof(azureAdRepository));
     _accessRepository = accessRepository ??
                         throw new ArgumentNullException(nameof(accessRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _logger = logger ??
               throw new ArgumentNullException(nameof(logger));
 }