예제 #1
0
        private ProductFeedbackController GetControllerInstance(IProductFeedbackFacade facadeObject, Dictionary <string, string> headers = default)
        {
            var context           = GetHttpContext(headers);
            var controllerContext = new ControllerContext {
                HttpContext = context
            };

            return(new ProductFeedbackController(facadeObject)
            {
                ControllerContext = controllerContext
            });
        }
 public ProductFeedbackController(IProductFeedbackFacade productFeedbackFacade)
 {
     _productFeedbackFacade = productFeedbackFacade;
 }