Example #1
0
        public void Test_add_set()
        {
            Mtg.Model.CardSet newSet = new Mtg.Model.CardSet
            {
                Id          = "FRS",
                Name        = "Fritz Set",
                Description = "Awesome sauce",
                //YYYY-MM-DD
                ReleasedAt = "2014-05-15",
                Block      = "Fritz",
                Type       = "Fritz",
                BasicLand  = 0,
                Rare       = 0,
                MythicRare = 80,
                Common     = 1,
                Uncommon   = 1
            };

            newSet = repository.AddCardSet(newSet).Result;

            Assert.AreEqual(newSet.Id, "FRS");
        }
Example #2
0
        public void Test_add_set ()
        {
            Mtg.Model.CardSet newSet = new Mtg.Model.CardSet
            {
                Id = "FRS",
                Name = "Fritz Set",
                Description = "Awesome sauce",
                //YYYY-MM-DD
                ReleasedAt = "2014-05-15",
                Block = "Fritz",
                Type = "Fritz",
                BasicLand = 0,
                Rare = 0, 
                MythicRare = 80,
                Common = 1,
                Uncommon = 1
            };

            newSet = repository.AddCardSet(newSet).Result;

            Assert.AreEqual(newSet.Id, "FRS");
        }