public IAnimal CreateAnimal(int petType) { IAnimal animal; switch (petType) { case 1: animal = new Dog(); break; case 2: animal = new Cat(); break; default: animal = new Dumbass(); break; } return(animal); }
private static void WorkflowTest2() { var container = new TestContainer(); var app = new Dumbass(container); var result = app.Execute(new Dumbass.CreateEmployee(), new EmployeeModel { Name = "ryuzaki" }); }