public VocabularyService( IVocabularyRepository vocabularyRepository, ILogWrapper logger) { VocabularyRepository = vocabularyRepository; Logger = logger; }
public IndexService(INGramRepository iNGramRepository, ITokenizer tokenizer, IVocabularyRepository vocabularyRepository, IDocumentStoreRepository documentStoreRepository, ISearchRespository searchRespository) { _iNGramRepository = iNGramRepository; _tokenizer = tokenizer; _vocabularyRepository = vocabularyRepository; _documentStoreRepository = documentStoreRepository; _searchRespository = searchRespository; }
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(); }
public ApplicationInitializer(IConsumer consumer, IVocabularyRepository vocabularyRepository, IPractiseInitializerFactory practiseInitializerFactory) { _consumer = consumer; _practiseInitializerFactory = practiseInitializerFactory; _vocabularyRepository = vocabularyRepository; }
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; }
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(); }