static void Main(string[] args) { _restaurantService = RestaurantServiceFactory.GetService(); _personService = PersonServiceFactory.GetService(); SelectYourPerson(); }
public LibraryControllerFactory() { controllers = new Dictionary <string, Func <RequestContext, IController> >(); controllers["Book"] = controller => new BookController(BookServiceFactory.create(Configuration.DataStorage)); controllers["Person"] = controller => new PersonController(PersonServiceFactory.create(Configuration.DataStorage)); }
public void Setup() { PersonServiceFactory = new PersonServiceFactory(null, null, null); }