private static HomeController GetHomeController(IBusinessServices business) { HomeController controller = new HomeController(business); controller.ControllerContext = new ControllerContext() { Controller = controller, RequestContext = new RequestContext(new MockHttpContext(), new RouteData()) }; return(controller); }
public BusinessController(IBusinessServices businessServices, AppDbContext context, ILogger <BusinessController> logger, IAddressServices addressServices, IEventServices eventServices, IEventTypeServices eventTypeServices) { _eventServices = eventServices; _businessServices = businessServices; _context = context; _logger = logger; _addressServices = addressServices; _eventTypeServices = eventTypeServices; }
public EventController(ILogger <HomeController> logger, IEventServices eventServices, IEventTypeServices eventTypeServices, AppDbContext context, IAddressServices addressServices, IBusinessServices businessServices, UserManagerSQL userManager) { _userManager = userManager; _logger = logger; _eventServices = eventServices; _eventTypeServices = eventTypeServices; _context = context; _addressServices = addressServices; _businessServices = businessServices; }
public HomeController(IBusinessServices business) { _business = business; }
public HomeController(ILogger <HomeController> logger, IBusinessServices businessServices, SignInManager <ApplicationUser> signInManager) { _logger = logger; _businessServices = businessServices; _signIngManager = signInManager; }
protected BusinessCommand(IBusinessServices businessServices) : base(businessServices.Validator) { this.businessServices = businessServices; }