private static AgencyPropertyController GetAgencyPropertyController() { var controller = new AgencyPropertyController(); HttpContextStub.SetupController(controller); return(controller); }
private static AccountController GetAcountController(RouteData routedata) { var controller = new AccountController(); HttpContextStub.SetupController(controller, routedata); return(controller); }
private static ProjectController GetProjectController() { var controller = new ProjectController(); HttpContextStub.SetupController(controller); return(controller); }
private ShoppingCartController GetShoppingCartController() { var controller = new ShoppingCartController(); HttpContextStub.SetupController(controller); return(controller); }
private static ShoppingCartController GetShoppingCartController(IConfiguration config) { var controller = new ShoppingCartController(new DatabaseContext(config)); HttpContextStub.SetupController(controller); return(controller); }
private ShoppingCartController GetShoppingCartController() { var controller = new ShoppingCartController(_databaseContext, new ShoppingCartLogic(_databaseContext)); HttpContextStub.SetupController(controller); return(controller); }
public Account_UserRegistration_Steps() { _accountController = new AccountController(); HttpContextStub.SetupController(_accountController); }