コード例 #1
0
        private static AgencyPropertyController GetAgencyPropertyController()
        {
            var controller = new AgencyPropertyController();

            HttpContextStub.SetupController(controller);
            return(controller);
        }
コード例 #2
0
        private static AccountController GetAcountController(RouteData routedata)
        {
            var controller = new AccountController();

            HttpContextStub.SetupController(controller, routedata);
            return(controller);
        }
コード例 #3
0
        private static ProjectController GetProjectController()
        {
            var controller = new ProjectController();

            HttpContextStub.SetupController(controller);
            return(controller);
        }
コード例 #4
0
        private ShoppingCartController GetShoppingCartController()
        {
            var controller = new ShoppingCartController();

            HttpContextStub.SetupController(controller);
            return(controller);
        }
コード例 #5
0
        private static ShoppingCartController GetShoppingCartController(IConfiguration config)
        {
            var controller = new ShoppingCartController(new DatabaseContext(config));

            HttpContextStub.SetupController(controller);
            return(controller);
        }
コード例 #6
0
        private ShoppingCartController GetShoppingCartController()
        {
            var controller = new ShoppingCartController(_databaseContext, new ShoppingCartLogic(_databaseContext));

            HttpContextStub.SetupController(controller);
            return(controller);
        }
コード例 #7
0
 public Account_UserRegistration_Steps()
 {
     _accountController = new AccountController();
     HttpContextStub.SetupController(_accountController);
 }