public static Quest CreateStored(out IGameStore gameStore, out Guid gameId) { gameStore = new VolatileGameStore(); var quest = Create(gameStore); gameId = quest.StartJourney(); return(quest); }
public void StartJourney_ResultsInGeneratedGame_AndReturnsGameId_Test() { // Arrange var gameStore = new VolatileGameStore(); var quest = QuestFactory.Create(gameStore); // Act var gameId = quest.StartJourney(); // Assert Assert.NotEqual(Guid.Empty, gameId); Assert.NotNull(gameStore.Get(gameId)); }