Example #1
0
        public UnitOfWork(ApplicationEntities context)
        {
            _context = context;

            Users           = new AspNetUserRepository(_context);
            Roles           = new AspNetRoleRepository(_context);
            Companies       = new CompanyRepository(_context);
            Beacons         = new BeaconRepository(_context);
            SurveyAnswers   = new SurveyAnswerRepository(_context);
            SurveyQuestions = new SurveyQuestionRepository(_context);
        }
Example #2
0
 public BeaconApi(
     IBeaconRepository beaconRepository,
     IUserRepository userRepository,
     IValidationUserService validation,
     ILogger <BeaconApi> logger)
 {
     BeaconRepository = beaconRepository;
     UserRepository   = userRepository;
     Validation       = validation;
     Logger           = logger;
 }
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
 public BeaconResource(IBeaconRepository beaconRepository, IMappingConfiguration mappingConfiguration)
 {
     _beaconRepository = beaconRepository;
     mappingConfiguration.Load();
 }
Example #6
0
 public BeaconManager(IBeaconRepository beaconRepository, IMappingFactory <Beacon, BeaconModel, BeaconModel> beaconMapper, IPermissionManager permissionManager)
 {
     _beaconRepository  = beaconRepository;
     _beaconMapper      = beaconMapper;
     _permissionManager = permissionManager;
 }
 public MapRepository(IPSEntities context, IBeaconRepository beaconRepository)
 {
     _dbContext = context;
     _beaconRepository = beaconRepository;
 }