示例#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);
        }
示例#2
0
 public BeaconApi(
     IBeaconRepository beaconRepository,
     IUserRepository userRepository,
     IValidationUserService validation,
     ILogger <BeaconApi> logger)
 {
     BeaconRepository = beaconRepository;
     UserRepository   = userRepository;
     Validation       = validation;
     Logger           = logger;
 }
示例#3
0
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
示例#4
0
 public BeaconController(IBeaconRepository repository)
 {
     Requires.NotNull(repository);
     _repository = repository;
 }
 public BeaconResource(IBeaconRepository beaconRepository, IMappingConfiguration mappingConfiguration)
 {
     _beaconRepository = beaconRepository;
     mappingConfiguration.Load();
 }
示例#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;
 }