Microsoft.Protocols.TestSuites.MS_OXWSBTRF.MS_OXWSCOREAdapter.Initialize C# (CSharp) Method

Initialize() public method

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.
public Initialize ( TestTools testSite ) : void
testSite TestTools Pass ITestSite to adapter, make adapter can use ITestSite's function
return void
        public override void Initialize(TestTools.ITestSite testSite)
        {
            base.Initialize(testSite);
            testSite.DefaultProtocolDocShortName = "MS-OXWSBTRF";

            // Merge common configuration and SHOULD/MAY configuration files
            Common.MergeConfiguration(testSite);

            // Get the parameters from configuration files.
            this.userName = Common.GetConfigurationPropertyValue("UserName", testSite);
            this.password = Common.GetConfigurationPropertyValue("UserPassword", testSite);
            this.domain = Common.GetConfigurationPropertyValue("Domain", testSite);
            this.url = Common.GetConfigurationPropertyValue("ServiceUrl", testSite);

            this.exchangeServiceBinding = new ExchangeServiceBinding(this.url, this.userName, this.password, this.domain, testSite);
            Common.InitializeServiceBinding(this.exchangeServiceBinding, testSite);
        }
        #endregion