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); }
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 BeaconResource(IBeaconRepository beaconRepository, IMappingConfiguration mappingConfiguration) { _beaconRepository = beaconRepository; mappingConfiguration.Load(); }
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; }