/// <summary> /// Initializes a new instance of the <see cref="AlfredSubsystem" /> class. /// </summary> /// <param name="container">The container.</param> /// <param name="engineName">Name of the chat engine.</param> /// <exception cref="System.ArgumentNullException"></exception> public ChatSubsystem([NotNull] IObjectContainer container, [NotNull] string engineName) : base(container) { // Instantiate composite objects ChatHandler = new AimlStatementHandler(container, engineName); _chatPage = new ChatPage(container, Res.ChatModuleName.NonNull(), ChatHandler); }
public void StartupLeavesLastInputClear() { var chat = new AimlStatementHandler(_container, "Alfredo"); chat.DoInitialGreeting(); chat.LastInput.ShouldBeNullOrEmpty("Startup did not clear last input."); }