Beispiel #1
0
        public void TestCircleOfLife()
        {
            var service = new MastermindService();
            var guid    = service.CreateNewGame();
            var game    = service.GetGame(guid);
            var game2   = service.GetGame(guid);

            Assert.AreEqual(game, game2);

            service.QuitGame(guid);
            var game3 = service.GetGame(guid);

            Assert.IsNull(game3);
        }
Beispiel #2
0
 public void QuitGame(Guid guid)
 {
     service.QuitGame(guid);
 }