public void AddStoriesToGame(CampaignGameStarter gameStarter) { //this.TestEvent(gameStarter); var m = new MenuBroker(); foreach (var story in GameData.Instance.StoryContext.Stories) { m.CreateGameMenuFor(gameStarter, story); } }
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); } }
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("_"); }