Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.MS_OXCMAPIHTTPAdapter.Initialize C# (CSharp) Method

Initialize() public method

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite Pass ITestSite into adapter and make adapter can use ITestSite's function.
return void
        public override void Initialize(ITestSite testSite)
        {
            base.Initialize(testSite);
            testSite.DefaultProtocolDocShortName = "MS-OXCMAPIHTTP";
            if (!commonConfigImported)
            {
                Common.MergeConfiguration(this.Site);
                commonConfigImported = true;
            }

            this.domainName = Common.GetConfigurationPropertyValue("Domain", this.Site);
            this.userName = Common.GetConfigurationPropertyValue("AdminUserName", this.Site);
            this.password = Common.GetConfigurationPropertyValue("AdminUserPassword", this.Site);

            AdapterHelper.SessionContextCookies = new CookieCollection();
            AdapterHelper.ClientInstance = string.Empty;
            AdapterHelper.Counter = 0;
        }
MS_OXCMAPIHTTPAdapter