예제 #1
0
 public APIController(IItemStore itemStore, IMenuStore menuStore, IRestaurantStore restaurantStore)
 {
     _itemStore       = itemStore;
     _menuStore       = menuStore;
     _restaurantStore = restaurantStore;
 }
예제 #2
0
 public void setup()
 {
     _restaurantStore = Substitute.For<IRestaurantStore>();
     _controller = new RestaurantsController(_restaurantStore);
 }
예제 #3
0
 public RestaurantsController(IRestaurantStore store)
 {
     _store = store;
 }