public async Task GetMultiverseCardTest3()
        {
            MultiverseCard mc = await rep.GetMultiverseCardAsync("SF-PXTC_250b");

            MultiverseCard mc1 = new MultiverseCard {
                MultiverseId = "SF-PXTC_250b", ImagePath = @"PXTC\SF-PXTC_250b.full.jpg", SetID = "PXTC"
            };

            Assert.AreEqual(mc1, mc);
        }
        public async Task GetMultiverseCardTest1()
        {
            MultiverseCard mc = await rep.GetMultiverseCardAsync("423808");

            MultiverseCard mc1 = new MultiverseCard {
                MultiverseId = "423808", ImagePath = @"AER\423808.full.jpg", SetID = "AER"
            };

            Assert.AreEqual(mc1, mc);
        }
        public async Task GetMultiverseCardTest2()
        {
            MultiverseCard mc = await rep.GetMultiverseCardAsync("25872");

            MultiverseCard mc1 = new MultiverseCard {
                MultiverseId = "25872", ImagePath = @"PLS\25872.full.jpg", SetID = "PLS"
            };

            Assert.AreEqual(mc1, mc);
        }
Пример #4
0
        public MultiverseCard GetMultiverseCard(string multiverseId)
        {
            if (multiverseId == null)
            {
                throw new ArgumentNullException();
            }
            MultiverseCard mc = DeepQueryMultiverse().SingleOrDefault(m => m.MultiverseId.Equals(multiverseId));

            return(mc);
        }
        public async Task GetMultiverseCardTest7()
        {
            MultiverseCard mc = await rep.GetMultiverseCardAsync(" ");

            Assert.AreEqual(null, mc);
        }