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 }); }
public RestaurantController(IRestaurantFacade facade) { _logger = LogManager.GetLogger(Assembly.GetExecutingAssembly().GetName().Name); _facade = facade; }
public RestaurantsController(IRestaurantFacade restaurantFacade, IMenuFacade menuFacade, IFeedBackFacade feedBackFacade) { _restaurantFacade = restaurantFacade; _menuFacade = menuFacade; _feedBackFacade = feedBackFacade; }
public RestaurantController(IRestaurantFacade restaurantFacade) { _restaurantFacade = restaurantFacade; }