コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: Leah-Belin/MVCApp
 public HomeController(IBusinessServices business)
 {
     _business = business;
 }
コード例 #5
0
 public HomeController(ILogger <HomeController> logger, IBusinessServices businessServices, SignInManager <ApplicationUser> signInManager)
 {
     _logger           = logger;
     _businessServices = businessServices;
     _signIngManager   = signInManager;
 }
コード例 #6
0
 protected BusinessCommand(IBusinessServices businessServices)
     : base(businessServices.Validator)
 {
     this.businessServices = businessServices;
 }