Exemple #1
0
        /// <summary>
        /// Overrides TestClassBase's TestInitialize()
        /// </summary>
        protected override void TestInitialize()
        {
            // Initial protocol adapter.
            this.oxoruleAdapter = Site.GetAdapter <IMS_OXORULEAdapter>();

            // Check whether the test initialize process should be disabled.
            if (this.CheckIfTestCaseDisabled())
            {
                return;
            }

            // Initial SUT control adapters.
            this.sutAdapter                 = Site.GetAdapter <IMS_OXORULESUTControlAdapter>();
            this.sutSetOOFAdapter           = Site.GetAdapter <IMS_OXWOOFSUTControlAdapter>();
            this.server                     = Common.GetConfigurationPropertyValue(Constants.Server, this.Site);
            this.user1ESSDN                 = Common.GetConfigurationPropertyValue(Constants.User1ESSDN, this.Site);
            this.domain                     = Common.GetConfigurationPropertyValue(Constants.Domain, this.Site);
            this.user1Name                  = Common.GetConfigurationPropertyValue(Constants.User1Name, this.Site);
            this.user1Password              = Common.GetConfigurationPropertyValue(Constants.User1Password, this.Site);
            this.user2Password              = Common.GetConfigurationPropertyValue(Constants.User2Password, this.Site);
            this.user2Name                  = Common.GetConfigurationPropertyValue(Constants.User2Name, this.Site);
            this.user2ESSDN                 = Common.GetConfigurationPropertyValue(Constants.User2ESSDN, this.Site);
            this.waitForTheRuleToTakeEffect = int.Parse(Common.GetConfigurationPropertyValue(Constants.WaitForTheRuleToTakeEffect, this.Site));
            this.getMessageRepeatTime       = ushort.Parse(Common.GetConfigurationPropertyValue(Constants.GetMessageRepeatTime, this.Site));
            this.propertySizeLimitFlag      = ushort.Parse(Common.GetConfigurationPropertyValue(Constants.PropertySizeLimit, this.Site));
            this.waitForSetOOFComplete      = int.Parse(Common.GetConfigurationPropertyValue(Constants.WaitForSetOOFComplete, this.Site));

            // Logon testuser1 mailbox.
            this.LogonMailbox(TestUser.TestUser1);
        }
        /// <summary>
        /// Overrides TestClassBase's TestInitialize()
        /// </summary>
        protected override void TestInitialize()
        {
            // Initial protocol adapter.
            this.oxoruleAdapter = Site.GetAdapter<IMS_OXORULEAdapter>();

            // Check whether the test initialize process should be disabled.
            if (this.CheckIfTestCaseDisabled())
            {
                return;
            }

            // Initial SUT control adapters.
            this.sutAdapter = Site.GetAdapter<IMS_OXORULESUTControlAdapter>();
            this.sutSetOOFAdapter = Site.GetAdapter<IMS_OXWOOFSUTControlAdapter>();
            this.server = Common.GetConfigurationPropertyValue(Constants.Server, this.Site);
            this.user1ESSDN = Common.GetConfigurationPropertyValue(Constants.User1ESSDN, this.Site);
            this.domain = Common.GetConfigurationPropertyValue(Constants.Domain, this.Site);
            this.user1Name = Common.GetConfigurationPropertyValue(Constants.User1Name, this.Site);
            this.user1Password = Common.GetConfigurationPropertyValue(Constants.User1Password, this.Site);
            this.user2Password = Common.GetConfigurationPropertyValue(Constants.User2Password, this.Site);
            this.user2Name = Common.GetConfigurationPropertyValue(Constants.User2Name, this.Site);
            this.user2ESSDN = Common.GetConfigurationPropertyValue(Constants.User2ESSDN, this.Site);
            this.waitForTheRuleToTakeEffect = int.Parse(Common.GetConfigurationPropertyValue(Constants.WaitForTheRuleToTakeEffect, this.Site));
            this.getMessageRepeatTime = ushort.Parse(Common.GetConfigurationPropertyValue(Constants.GetMessageRepeatTime, this.Site));
            this.propertySizeLimitFlag = ushort.Parse(Common.GetConfigurationPropertyValue(Constants.PropertySizeLimit, this.Site));
            this.waitForSetOOFComplete = int.Parse(Common.GetConfigurationPropertyValue(Constants.WaitForSetOOFComplete, this.Site));

            // Logon testuser1 mailbox.
            this.LogonMailbox(TestUser.TestUser1);
        }