Example #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;
 }
Example #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());
        }
Example #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());
        }
 public StatisticsCollector(WordsDB db)
 {
     this.database = db;
 }