コード例 #1
0
        private RestaurantController GetControllerInstance(IRestaurantFacade facadeObject, Dictionary <string, string> headers = default)
        {
            var context           = GetHttpContext(headers);
            var controllerContext = new ControllerContext {
                HttpContext = context
            };

            return(new RestaurantController(facadeObject)
            {
                ControllerContext = controllerContext
            });
        }
コード例 #2
0
 public RestaurantController(IRestaurantFacade facade)
 {
     _logger = LogManager.GetLogger(Assembly.GetExecutingAssembly().GetName().Name);
     _facade = facade;
 }
コード例 #3
0
 public RestaurantsController(IRestaurantFacade restaurantFacade, IMenuFacade menuFacade, IFeedBackFacade feedBackFacade)
 {
     _restaurantFacade = restaurantFacade;
     _menuFacade       = menuFacade;
     _feedBackFacade   = feedBackFacade;
 }
コード例 #4
0
 public RestaurantController(IRestaurantFacade restaurantFacade)
 {
     _restaurantFacade = restaurantFacade;
 }