public ReplyManagerTests() { this.configMock = new Mock <IBotConfig>(); this.configMock.Setup(x => x.BotConfigurationPath).Returns("Bot/bot.json"); this.replyBuilderMock = new Mock <IReplyBuilder>(); this.seriazlierMock = new Mock <ISerializer>(); this.seriazlierMock.Setup(x => x.Deserialize <ReplyConfiguration>(It.IsAny <string>())).Returns(new ReplyConfiguration { Items = new[] { new ReplyItem { ReplyId = "hello", Routes = new [] { "hello", "test" }, ReplyType = "raw" } } }); var replyManager = new ReplyManager(this.configMock.Object, this.seriazlierMock.Object, new ReplyItem[] { }); this.routingConfiguration = replyManager; this.replyConfiguration = replyManager; }
public ReplyHandler(IReplyConfiguration replyConfiguration, IReplyFactory replyFactory) { this.replyFactory = replyFactory; this.replyConfiguration = replyConfiguration; }