public void ImportNewCardSet()
        {
            string cardSet = "MasquesBlock";

            WishList wishList = new WishList();
            wishList.LoadDeckFile();
            wishList.LoadCardListFile(cardSet);
            var writeList = new List<MagicCard>();

            Random rand = new Random();
            for (int i = 0; i < 10; i++)
            {
                var index = rand.Next(1, wishList.CollectionCards.Count);
                var card = wishList.CollectionCards[index];
                writeList.Add(card);
            }

            foreach (var magicCard in writeList.OrderBy(p => p.Name))
            {
                Console.WriteLine(magicCard);
            }

            wishList.WriteWishListFile(writeList);

            //var writeList = new List<MagicCard>();

            //Random rand = new Random();
            //for (int i = 0; i < 100; i++)
            //{
            //    writeList = new List<MagicCard>();
            //    var index = rand.Next(1, wishList.CollectionCards.Count);
            //    var card = wishList.CollectionCards[index];
            //    writeList.Add(card);
            //    wishList.WriteWishListFile(writeList);

            //    // Validate single card by opening wishlist file
            //    // then saving out again in textfile mode
            //    // then open text file and validate names match
            //    // Assert.True();
            //}

            //wishList.WriteToDatabase();
        }
        public void WriteDekFileToLoadForUpdatedPricing()
        {
            var dataContext = new MagicOnlineBotDb(ConfigurationManager.ConnectionStrings["CardDataLayer.Properties.Settings.MagicOnlineBotConnectionString"].ToString());
            var cards = dataContext
                .Prices
                .Where(p => p.SellPrice == 999 && p.OwnedAmount > 0)
                .Select(p => new MagicCard(p))
                //.Skip(450)
                .Take(75)
                .ToList();

            WishList wishList = new WishList();
            wishList.WriteWishListFile(cards);
        }
        public void GetCommonsAndUncommons()
        {
            Dictionary<int, MagicCard> wishListCards = IoC.Resolve<IMagicCardList>().GetComprehensiveCommonsAndUncommons(8, 2);
            var subset = wishListCards.Where(p => p.Value.Set=="9ED").Select(p => p.Value)
                //.Skip(400)
                //.Take(400)
                ;

            WishList wishList = new WishList();
            wishList.WriteWishListFile(subset.ToList());
        }