Пример #1
0
        public void AddStoriesToGame(CampaignGameStarter gameStarter)
        {
            //this.TestEvent(gameStarter);
            var m = new MenuBroker();

            foreach (var story in GameData.Instance.StoryContext.Stories)
            {
                m.CreateGameMenuFor(gameStarter, story);
            }
        }
Пример #2
0
        private void ReplaceVanillaEscapeByCustomWaiting()
        {
            var mb  = new MenuBroker();
            var act = mb.GetWaitingMenu();

            new MenuBroker().PlayAct(act);

            if (!string.IsNullOrEmpty(act.Image) || act.Image.ToUpper() != "NONE")
            {
                mb.SetBackgroundImage(act.Image);
            }
        }
Пример #3
0
        public void Test1()
        {
            //Arrange
            new Stories().LoadStoriesFromDisk();
            var sut = new MenuBroker();

            //Act
            var actualResult = sut.GetWaitingMenu();

            //Assert
            GameData.Instance.StoryContext.Stories.Count.Should().BeGreaterThan(0);
            actualResult.Id.Should().Contain("_");
        }