Microsoft.Protocols.TestSuites.MS_ASDOC.MS_ASDOCAdapter.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 Transfer ITestSite into adapter, make adapter can use ITestSite's function.
return void
        public override void Initialize(ITestSite testSite)
        {
            base.Initialize(testSite);
            Site.DefaultProtocolDocShortName = "MS-ASDOC";

            // Get the name of common configuration file.
            string commonConfigFileName = Common.GetConfigurationPropertyValue("CommonConfigurationFileName", testSite);

            // Merge the common configuration
            Common.MergeGlobalConfig(commonConfigFileName, testSite);
            this.activeSyncClient = new ActiveSyncClient(testSite)
            {
                UserName = Common.GetConfigurationPropertyValue("UserName", testSite),
                Password = Common.GetConfigurationPropertyValue("UserPassword", testSite)
            };
        }