Example #1
0
        public void Add_NewGame_ByDeckName()
        {
            var deck  = data.GetAllDecks().Single(d => d.Name == "Beasts");
            var count = data.AddGames(new List <Game>()
            {
                newGameNamedDeck
            });

            Assert.AreEqual(1, count);
            data.InvalidateCache();
            Assert.AreEqual(8, data.GetAllGames().Count);
            Assert.AreEqual(3, data.GetAllGamesWithDeck(deck.Id).Count);
        }