Beispiel #1
0
        private void TestGetById <T>(DAL.Abstractions.IGenericRepository <T> rep)
        {
            ChangeColor();
            int rand = random.Next(rep.Get().Count()) + 1;

            Console.WriteLine($"Test getById(id) id={rand}");
            ReturnColor();
            Console.WriteLine(rep.GetById(rand));
        }
Beispiel #2
0
        private void TestGet <T>(DAL.Abstractions.IGenericRepository <T> rep)
        {
            ChangeColor();
            Console.WriteLine("Get all elements");
            ReturnColor();

            foreach (var entity in rep.Get())
            {
                Console.WriteLine(entity);
            }
        }