public void Setup()
        {
            _tokenizer = new Mock<ITokenizer>();
            _frequencer = new Frequencer(_tokenizer.Object);

            var input = new[] {"HI", "BYE"};
            _tokenizer.Setup(x => x.TokenizeWords(It.IsAny<string>())).Returns(input);
            _tokenizer.Setup(x => x.TokenizeSentences(It.IsAny<string>())).Returns(new[] {"Hi"});
        }
示例#2
0
 public Summarizer(IFrequencer frequencer)
 {
     _frequencer = frequencer;
 }