Esempio n. 1
0
        public void EncodeCredential_Then_Decode_It()
        {
            var userName = "******";
            var password = "******";

            var encodedCredential = CredentialManager.EncodedCredentials(userName, password);

            var decodedCredential = CredentialManager.DecodeCredentials(encodedCredential);

            decodedCredential.Should().BeEquivalentTo(userName + ":" + password);
        }
 /// <summary>
 /// Decode of Credential
 /// </summary>
 /// <param name="credential">Encoded String</param>
 /// <returns>Decoded String</returns>
 public string Get(string credential)
 {
     return(CredentialManager.DecodeCredentials(credential));
 }