Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public BeaconApi(
     IBeaconRepository beaconRepository,
     IUserRepository userRepository,
     IValidationUserService validation,
     ILogger <BeaconApi> logger)
 {
     BeaconRepository = beaconRepository;
     UserRepository   = userRepository;
     Validation       = validation;
     Logger           = logger;
 }
Ejemplo n.º 3
0
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
Ejemplo n.º 4
0
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
Ejemplo n.º 5
0
 public BeaconResource(IBeaconRepository beaconRepository, IMappingConfiguration mappingConfiguration)
 {
     _beaconRepository = beaconRepository;
     mappingConfiguration.Load();
 }
Ejemplo n.º 6
0
 public BeaconManager(IBeaconRepository beaconRepository, IMappingFactory <Beacon, BeaconModel, BeaconModel> beaconMapper, IPermissionManager permissionManager)
 {
     _beaconRepository  = beaconRepository;
     _beaconMapper      = beaconMapper;
     _permissionManager = permissionManager;
 }
Ejemplo n.º 7
0
 public MapRepository(IPSEntities context, IBeaconRepository beaconRepository)
 {
     _dbContext = context;
     _beaconRepository = beaconRepository;
 }