public void PainterCreationWithoutReflectionTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IArtist x = factory.GetArtist(typeof(Painter)); Assert.AreSame(x.GetType(), typeof(Painter)); }
public void PainterCreationTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IPerson x = factory.GetPerson <Painter>(); Assert.AreSame(x.GetType(), typeof(Painter)); }
public void MathTeacherCreationWithoutReflectionTest() { SimpleFactory factory = SimpleFactory.GetFactory(); ITeacher x = factory.GetTeacher(typeof(MathTeacher)); Assert.AreSame(x.GetType(), typeof(MathTeacher)); }
public void MathTeacherCreationTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IPerson x = factory.GetPerson <MathTeacher>(); Assert.AreSame(x.GetType(), typeof(MathTeacher)); }
public void PneumologistCreationWithoutReflectionTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IDoctor x = factory.GetDoctor(typeof(Pneumologist)); Assert.AreSame(x.GetType(), typeof(Pneumologist)); }
public void PneumologistCreationTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IPerson x = factory.GetPerson <Pneumologist>(); Assert.AreSame(x.GetType(), typeof(Pneumologist)); }