/// <summary> /// Initializes the test case before running it /// </summary> protected override void TestInitialize() { this.Site = TestClassBase.BaseTestSite; this.oxcrpcAdapter = this.Site.GetAdapter <IMS_OXCRPCAdapter>(); this.oxcrpcControlAdapter = this.Site.GetAdapter <IMS_OXCRPCSUTControlAdapter>(); this.transportIsMAPI = string.Compare(Common.GetConfigurationPropertyValue("TransportSeq", this.Site), "mapi_http", true, System.Globalization.CultureInfo.InvariantCulture) == 0; if (!this.transportIsMAPI) { this.pcbAuxOut = ConstValues.ValidpcbAuxOut; this.pcbOut = ConstValues.ValidpcbOut; this.rgbIn = new byte[0]; this.pcxh = IntPtr.Zero; this.pcxhInvalid = IntPtr.Zero; this.pacxh = IntPtr.Zero; this.pulTimeStamp = 0x00000000; this.responseSOHTable = new List <List <uint> >(); this.response = null; this.objHandle = 0; this.userDN = Common.GetConfigurationPropertyValue("AdminUserEssdn", this.Site); this.userName = Common.GetConfigurationPropertyValue("AdminUserName", this.Site); this.password = Common.GetConfigurationPropertyValue("AdminUserPassword", this.Site); // Holds the value represents USE_PER_MDB_REPLID_MAPPING flag that control the behavior of the RopLogon this.userPrivilege = 0x01000000; #region Initializes Server and Client based on specific protocol sequence this.authenticationLevel = (uint)Convert.ToInt32(Common.GetConfigurationPropertyValue("RpcAuthenticationLevel", this.Site)); this.authenticationService = (uint)Convert.ToInt32(Common.GetConfigurationPropertyValue("RPCAuthenticationService", this.Site)); #endregion } }
/// <summary> /// Initializes the test case before running it /// </summary> protected override void TestInitialize() { this.Site = TestClassBase.BaseTestSite; this.oxcrpcAdapter = this.Site.GetAdapter<IMS_OXCRPCAdapter>(); this.oxcrpcControlAdapter = this.Site.GetAdapter<IMS_OXCRPCSUTControlAdapter>(); this.transportIsMAPI = string.Compare(Common.GetConfigurationPropertyValue("TransportSeq", this.Site), "mapi_http", true, System.Globalization.CultureInfo.InvariantCulture) == 0; if (!this.transportIsMAPI) { this.pcbAuxOut = ConstValues.ValidpcbAuxOut; this.pcbOut = ConstValues.ValidpcbOut; this.rgbIn = new byte[0]; this.pcxh = IntPtr.Zero; this.pcxhInvalid = IntPtr.Zero; this.pacxh = IntPtr.Zero; this.pulTimeStamp = 0x00000000; this.responseSOHTable = new List<List<uint>>(); this.response = null; this.objHandle = 0; this.userDN = Common.GetConfigurationPropertyValue("AdminUserEssdn", this.Site); this.userName = Common.GetConfigurationPropertyValue("AdminUserName", this.Site); this.password = Common.GetConfigurationPropertyValue("AdminUserPassword", this.Site); // Holds the value represents USE_PER_MDB_REPLID_MAPPING flag that control the behavior of the RopLogon this.userPrivilege = 0x01000000; #region Initializes Server and Client based on specific protocol sequence this.authenticationLevel = (uint)Convert.ToInt32(Common.GetConfigurationPropertyValue("RpcAuthenticationLevel", this.Site)); this.authenticationService = (uint)Convert.ToInt32(Common.GetConfigurationPropertyValue("RPCAuthenticationService", this.Site)); #endregion } }