public void Setup() { helper = new WordsHandlerHelper(); helper.RawTextExractor.Setup(item => item.GetWord("test")).Returns("T"); helper.Handler.Setup(item => item.CheckSentiment(It.IsAny <WordOccurrence>())).Returns(new SentimentValue(new TestWordItem(), 2)); helper.Handler.Setup(item => item.IsStop(It.IsAny <WordOccurrence>())).Returns(true); helper.Handler.Setup(item => item.MeasureQuantifier(It.IsAny <WordOccurrence>())).Returns(2); instance = WordOccurrence.Create(helper.Handler.Object, helper.RawTextExractor.Object, helper.InquirerManager.Object, "Test", null, POSTags.Instance.NN); }
public void Setup() { helper = new WordsHandlerHelper(); helper.RawTextExractor.Setup(item => item.GetWord("test")).Returns("T"); helper.Handler.Setup(item => item.CheckSentiment(It.IsAny <WordOccurrence>())).Returns(new SentimentValue(new TestWordItem(string.Empty), "Text", 2)); helper.Handler.Setup(item => item.IsStop(It.IsAny <WordOccurrence>())).Returns(false); helper.Handler.Setup(item => item.MeasureQuantifier(It.IsAny <WordOccurrence>())).Returns(2); instance = Phrase.Create(helper.Handler.Object, POSTags.Instance.NN); }
public void Setup() { helper = new WordsHandlerHelper(); instance = new WordOccurenceFactory(new NullLogger <WordOccurenceFactory>(), helper.Handler.Object, helper.RawTextExractor.Object, helper.InquirerManager.Object); }
public void Setup() { helper = new WordsHandlerHelper(); wordItem = SetupItem(); }