public LearningSessionService(
     IMapper mapper,
     ILearningSessionFactory learningSessionFactory,
     IRepository <LearningSession> learningSessionRepository,
     IFactRepository factRepository)
 {
     _mapper = mapper;
     _learningSessionFactory    = learningSessionFactory;
     _learningSessionRepository = learningSessionRepository;
     _factRepository            = factRepository;
 }
Exemple #2
0
        public CommonData(IFactRepository factRepository, ISettingsRepository settingsRepository)
        {
            _factRepository       = factRepository;
            _settingsRepository   = settingsRepository;
            FactCount             = 1361;
            AllReadedFacts        = _factRepository.GetAllFacts();
            AlreadyGeneratedNames = new List <int>();
            var settings = _settingsRepository.GetSettings();

            IsNightMode = settings != null && settings.IsNightMode;
            BGSource    = settings != null
                ? settings.BGSource
                : "BG_3.jpg";
        }
Exemple #3
0
 public FactService(IFactRepository factRepository)
 {
     _factRepository = factRepository;
 }
Exemple #4
0
 public SubmissionsController(IFactRepository factRepo, ISubmissionRepository submissionRepo)
 {
     _factRepo       = factRepo;
     _submissionRepo = submissionRepo;
 }
Exemple #5
0
 public FactService(IFactRepository factRepository)
 {
     _rnd            = new Random();
     _fontSize       = Device.GetNamedSize(NamedSize.Medium, typeof(Label));
     _factRepository = factRepository;
 }
Exemple #6
0
 public FactsController(IFactRepository factRepository, IMapper mapper)
 {
     _factRepo = factRepository;
     _mapper   = mapper;
 }
Exemple #7
0
 public PingScheduler(IPing ping, IFactRepository factRepository)
 {
     this.ping           = ping;
     this.factRepository = factRepository;
 }
 public FactService(IFactRepository factRepository)
 {
     _factRepository = factRepository;
 }
Exemple #9
0
 public FactsController(IFactRepository factRepo)
 {
     _factRepo = factRepo;
 }