Exemplo n.º 1
0
        public void PainterCreationWithoutReflectionTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            IArtist       x       = factory.GetArtist(typeof(Painter));

            Assert.AreSame(x.GetType(), typeof(Painter));
        }
Exemplo n.º 2
0
        public void PainterCreationTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            IPerson       x       = factory.GetPerson <Painter>();

            Assert.AreSame(x.GetType(), typeof(Painter));
        }
Exemplo n.º 3
0
        public void MathTeacherCreationWithoutReflectionTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            ITeacher      x       = factory.GetTeacher(typeof(MathTeacher));

            Assert.AreSame(x.GetType(), typeof(MathTeacher));
        }
Exemplo n.º 4
0
        public void MathTeacherCreationTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            IPerson       x       = factory.GetPerson <MathTeacher>();

            Assert.AreSame(x.GetType(), typeof(MathTeacher));
        }
Exemplo n.º 5
0
        public void PneumologistCreationWithoutReflectionTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            IDoctor       x       = factory.GetDoctor(typeof(Pneumologist));

            Assert.AreSame(x.GetType(), typeof(Pneumologist));
        }
Exemplo n.º 6
0
        public void PneumologistCreationTest()
        {
            SimpleFactory factory = SimpleFactory.GetFactory();
            IPerson       x       = factory.GetPerson <Pneumologist>();

            Assert.AreSame(x.GetType(), typeof(Pneumologist));
        }