Example #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);
        }
Example #2
0
 public ActionResult <Guid> StartNewGame()
 {
     return(service.CreateNewGame());
 }