Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void ReplaceSpecialChars_Multiple(string stringChars, string expectedStringChars)
        {
            var secureStringChars = O365UserPropertyHelper.GetReplacedSpecialChars(stringChars, false);

            Assert.AreEqual(expectedStringChars, secureStringChars);
        }