public void GetUserPrincipalName_Multiple(string firstname, string lastname, string domain) { var userPrincipalName = O365UserPropertyHelper.UserPrincipalName(firstname, lastname, domain); var secureFirstname = O365UserPropertyHelper.GetReplacedSpecialChars(firstname, false); var secureLastname = O365UserPropertyHelper.GetReplacedSpecialChars(lastname, false); Assert.AreEqual($"{secureFirstname}.{secureLastname}@{domain}", userPrincipalName); }
public void ReplaceSpecialChars_Multiple(string stringChars, string expectedStringChars) { var secureStringChars = O365UserPropertyHelper.GetReplacedSpecialChars(stringChars, false); Assert.AreEqual(expectedStringChars, secureStringChars); }