public void StartDialog_HandlesFirstNode()
        {
            SetupTest();

            IAutoNode node = Substitute.For <IAutoNode>();

            dialog.FindStartingNode().Returns(node);

            DialogManager.StartDialog(dialog);

            node.Received().HandleNode(DialogManager.GraphEngine);
        }
        public void ContinueDialog_HandlesNode()
        {
            SetupTest();

            IAutoNode node = Substitute.For <IAutoNode>();

            DialogManager.Inject(dialog);
            DialogManager.Inject(node);

            DialogManager.ContinueDialog();

            node.Received().HandleNode(DialogManager.GraphEngine);
        }