Beispiel #1
0
        public void GuildCreationDialog()
        {
            var action = new GuildMasterAnswerAction();

            this.player.OpenedNpc = new NonPlayerCharacter(null, null, null);
            action.ProcessAnswer(this.player, GuildMasterAnswerAction.Answer.ShowDialog);
            Mock.Get(this.player.ViewPlugIns.GetPlugIn <IShowGuildCreationDialogPlugIn>()).Verify(g => g.ShowGuildCreationDialog(), Times.Once());
        }
Beispiel #2
0
        public void GuildCreationDialog()
        {
            var action = new GuildMasterAnswerAction();

            this.player.OpenedNpc = new NonPlayerCharacter(null, null, null);
            this.player.PlayerView.GuildView.Expect(g => g.ShowGuildCreationDialog());
            action.ProcessAnswer(this.player, GuildMasterAnswerAction.Answer.ShowDialog);
            this.player.PlayerView.GuildView.VerifyAllExpectations();
        }