Пример #1
0
 public WordsImporter(WordsDB db, string vocabulary, Tuple<string, int> from, List<Tuple<string, int>> to)
 {
     this.database = db;
     this.vocabulary = vocabulary;
     this.languageFrom = from;
     this.languagesTo = to;
 }
Пример #2
0
        public void Should_return_filtered_words()
        {
            //Arrange
            IWordsDB     sut = new WordsDB(words);
            const string from = "b", to = "c";
            //Act
            var actual = sut.Get(from, to);

            //Assert
            Assert.AreEqual(2, actual.Count());
        }
Пример #3
0
        public void Should_return_all_words()
        {
            //Arrange
            IWordsDB sut = new WordsDB(words);

            //Act
            var actual = sut.Get();

            //Assert
            Assert.AreEqual(4, actual.Count());
        }
Пример #4
0
 public StatisticsCollector(WordsDB db)
 {
     this.database = db;
 }