public void Setup() { this.commandParser = Mock.Of <ICommandParser>(); this.validCommandsCatalog = Mock.Of <IValidCommandsCatalog>(); this.commandProcessorFactory = Mock.Of <ICommandProcessorFactory>(); Mock.Get(this.validCommandsCatalog).Setup(x => x.GetValidCommands()).Returns(new[] { "stock" }); this.sut = new ChatBot(this.commandParser, this.validCommandsCatalog, this.commandProcessorFactory); }
public ChatBot(ICommandParser commandParser, IValidCommandsCatalog validCommandsCatalog, ICommandProcessorFactory commandProcessorFactory) { this.commandParser = commandParser; this.validCommandsCatalog = validCommandsCatalog; this.commandProcessorFactory = commandProcessorFactory; }