protected override void TestInitialize()
{
base.TestInitialize();
if (this.ASCNTCAdapter == null)
{
this.ASCNTCAdapter = this.Site.GetAdapter<IMS_ASCNTCAdapter>();
}
// Get the information of User1.
this.User1Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User1Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User1Password", this.Site),
UserDomain = Common.GetConfigurationPropertyValue("Domain", this.Site)
};
// Get the information of User2.
this.User2Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User2Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User2Password", this.Site),
UserDomain = Common.GetConfigurationPropertyValue("Domain", this.Site)
};
if (Common.GetSutVersion(this.Site) != SutVersion.ExchangeServer2007 || string.Equals(Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "12.1"))
{
this.SwitchUser(this.User1Information, true);
}
}