예제 #1
0
 public VocabularyService(
     IVocabularyRepository vocabularyRepository,
     ILogWrapper logger)
 {
     VocabularyRepository = vocabularyRepository;
     Logger = logger;
 }
예제 #2
0
 public IndexService(INGramRepository iNGramRepository, ITokenizer tokenizer, IVocabularyRepository vocabularyRepository, IDocumentStoreRepository documentStoreRepository, ISearchRespository searchRespository)
 {
     _iNGramRepository        = iNGramRepository;
     _tokenizer               = tokenizer;
     _vocabularyRepository    = vocabularyRepository;
     _documentStoreRepository = documentStoreRepository;
     _searchRespository       = searchRespository;
 }
예제 #3
0
        public static void Run(IConsumer consumer, IVocabularyRepository vocabularyRepository)
        {
            var random                     = new Random();
            var shuffleAlgorithm           = new FisherYatesShuffleAlgorithm(random);
            var practiseInitializerFactory = new PractiseInitializerFactory(consumer, shuffleAlgorithm);

            var applicationInitializer = new ApplicationInitializer(consumer, vocabularyRepository, practiseInitializerFactory);

            applicationInitializer.Start();
        }
예제 #4
0
 public ApplicationInitializer(IConsumer consumer, IVocabularyRepository vocabularyRepository, IPractiseInitializerFactory practiseInitializerFactory)
 {
     _consumer = consumer;
     _practiseInitializerFactory = practiseInitializerFactory;
     _vocabularyRepository       = vocabularyRepository;
 }
예제 #5
0
 public HomeController(ILogger <HomeController> logger, IVocabularyRepository vocabularyRepository)
 {
     _vocabularyRepository = vocabularyRepository;
     _logger = logger;
 }
 public TernarySearchFactory(IVocabularyRepository vocabularyRepository)
 {
     _vocabularyRepository = vocabularyRepository;
 }
 public IndexingController(IndexService indexService, IFileLocation fileLocation, IVocabularyRepository vocabularyRepository)
 {
     _indexService         = indexService;
     _fileLocation         = fileLocation;
     _vocabularyRepository = vocabularyRepository;
 }
예제 #8
0
 public VocabularyServices(IVocabularyRepository vocabularyRepository, IListVocabularyRepository listVocabularyRepository)
 {
     _vocabularyRepository     = vocabularyRepository;
     _listVocabularyRepository = listVocabularyRepository;
 }
 public VocabularyController(Logger.ILogger logger, IVocabularyRepository vocabularyRepository)
 {
     Logger = logger;
     VocabularyRepository = vocabularyRepository;
 }
 // TODO: use dependency injection
 public VocabularyService()
 {
     _vocabularyRepository = new VocabularyRepository();
 }