protected override void SetPageSessionContext() { base.SetPageSessionContext(); _wizardSchedule = new WizardSchedule(); _privateObject = new PrivateObject(_wizardSchedule); InitializeAllControls(_wizardSchedule); _blastScheduler = new BlastScheduler(); InitializeAllControls(_blastScheduler); _privateObjectBlastScheduler = new PrivateObject(_blastScheduler); _privateObject.SetFieldOrProperty(BlastScheduler, _blastScheduler); _testGroupExplorer = new testGroupExplorer(); InitializeAllControls(_testGroupExplorer); _privateObjectTestGroupExplorer = new PrivateObject(_testGroupExplorer); _privateObject.SetFieldOrProperty(TestgroupExplorer, _testGroupExplorer); }
protected override void SetPageSessionContext() { base.SetPageSessionContext(); _testGroupExplorer = new testGroupExplorer(); InitializeAllControls(_testGroupExplorer); _privateGroupExplorerObj = new PrivateObject(_testGroupExplorer); InitializeSessionFakes(); QueryString.Clear(); QueryString.Add(GroupIDKey, null); QueryString.Add(FilterIDKey, null); ShimUserControl.AllInstances.RequestGet = (p) => { return(new HttpRequest(string.Empty, TestUrl, string.Empty)); }; ShimHttpRequest.AllInstances.QueryStringGet = (r) => { return(QueryString); }; }