protected override void Establish_context() { base.Establish_context(); this._sessionTestModel = new SessionTestModel(1); this._appSettingModel = new AppSettingModel("The variable"); this._serverVariablesModel = new ServerVariablesModel(new System.Collections.Specialized.NameValueCollection()); }
public ActionResult Increase(SessionTestModel sessionTestModel) { this._sessionRepository.SetValue(SessionTestModelBinder.variableName, sessionTestModel.Number + 1, this.ControllerContext); return RedirectToAction("Index", "Home"); }
public PartialViewResult Display(SessionTestModel sessionTestModel) { return PartialView(sessionTestModel); }