Пример #1
0
        public static Quest CreateStored(out IGameStore gameStore, out Guid gameId)
        {
            gameStore = new VolatileGameStore();
            var quest = Create(gameStore);

            gameId = quest.StartJourney();
            return(quest);
        }
Пример #2
0
        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));
        }