Exemplo n.º 1
0
        public void CoVariantIntefaces()
        {
            var employeGetter = new GetEmployee();
            var employees     = employeGetter.Get();

            Assert.AreEqual(1, employees.Count());

            IGet <Person> peopleGetter = employeGetter;
            var           people       = peopleGetter.Get();

            Assert.AreEqual(1, people.Count());
        }