Beispiel #1
0
        public async Task Create_Super_Heroues()
        {
            var heroRepository = new Mock <IHeroRepository>();

            var          service = new HeroesService(heroRepository.Object);
            IList <Hero> list    = new List <Hero>();

            for (int i = 0; i < 20; i++)
            {
                list.Add(await service.CreateHeroAsync("Hero" + i));
            }


            Assert.IsTrue(list.GroupBy(h => h.Ability).Count() > 1);
            Assert.IsTrue(list.GroupBy(h => h.SuitColor).Count() > 1);
        }