Example #1
0
        public void Run()
        {
            var decksStrings = new StorageDeckRepository()
                               .GetAll()
                               .Select(deck => deck.ToString());

            Console.WriteLine(string.Join("\r\n", decksStrings));
        }
Example #2
0
        public override void Run()
        {
            var repository = new StorageDeckRepository();
            var decks      = Identifiers
                             .Select(id => ParseId(id))
                             .Select(id => repository.Read(id))
                             .Select(deck => deck.Mix());

            foreach (var deck in decks)
            {
                repository.Update(deck);
            }
        }