Microsoft.Protocols.TestSuites.MS_ASTASK.TestSuiteBase.TestInitialize C# (CSharp) Method

TestInitialize() protected method

Initialize the Test Suite.
protected TestInitialize ( ) : void
return void
        protected override void TestInitialize()
        {
            base.TestInitialize();

            if (this.TASKAdapter == null)
            {
                this.TASKAdapter = Site.GetAdapter<IMS_ASTASKAdapter>();
            }

            this.ActiveSyncProtocolVersion = Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site);
            this.UserInformation = new UserInformation();

            if (Common.GetSutVersion(this.Site) != SutVersion.ExchangeServer2007 || string.Equals(this.ActiveSyncProtocolVersion, "12.1"))
            {
                FolderSyncResponse folderSyncResponse = this.TASKAdapter.FolderSync();
                this.UserInformation.TasksCollectionId = Common.GetDefaultFolderServerId(folderSyncResponse, FolderType.Tasks, this.Site);
            }

            this.ItemsNeedToDelete = new Collection<string>();
        }