protected override void SetPageSessionContext() { base.SetPageSessionContext(); _testEntity = new WizardGroup { CampaignItemID = 1 }; _privateTestObject = new PrivateObject(_testEntity); InitializeAllControls(_testEntity); _groupExplorer = (groupExplorer)_privateTestObject.GetFieldOrProperty("groupExplorer1"); InitializeAllControls(_groupExplorer); _privateGroupExplorerObj = new PrivateObject(_groupExplorer); InitializeSessionFakes(); }
protected override void SetPageSessionContext() { base.SetPageSessionContext(); _groupExplorer = new groupExplorer(); InitializeAllControls(_groupExplorer); _privateGroupExplorerObj = new PrivateObject(_groupExplorer); _privateGroupExplorerObj.SetField("IsSelect", BindingFlags.Static | BindingFlags.NonPublic, false); 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); }; }