Exemplo n.º 1
0
        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));
 }
Exemplo n.º 3
0
 public void Setup()
 {
     PersonServiceFactory = new PersonServiceFactory(null, null, null);
 }