protected override void TestInitialize()
{
base.TestInitialize();
if (this.EMAILAdapter == null)
{
this.EMAILAdapter = Site.GetAdapter<IMS_ASEMAILAdapter>();
}
string domain = Common.GetConfigurationPropertyValue("Domain", this.Site);
this.User1Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User1Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User1Password", this.Site),
UserDomain = domain
};
this.User2Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User2Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User2Password", this.Site),
UserDomain = domain
};
this.User3Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User3Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User3Password", this.Site),
UserDomain = domain
};
this.User4Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User4Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User4Password", this.Site),
UserDomain = domain
};
this.User5Information = new UserInformation
{
UserName = Common.GetConfigurationPropertyValue("User5Name", this.Site),
UserPassword = Common.GetConfigurationPropertyValue("User5Password", this.Site),
UserDomain = domain
};
if (Common.GetSutVersion(this.Site) != SutVersion.ExchangeServer2007 || string.Equals(Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "12.1"))
{
this.SwitchUser(this.User1Information, true);
}
}