Пример #1
0
 public void SetUsername() {
     string user = "******";
     var cred = new UserCredentials {
         UserName = user
     };
     Assert.AreEqual(user, cred.UserName);
 }
Пример #2
0
 public void SetPasswordViaPlainTextString() {
     var password = new Password("secret");
     var cred = new UserCredentials {
         Password = password
     };
     Assert.AreEqual(password.ToString(), cred.Password.ToString());
 }
Пример #3
0
 public void DefaultConstructor() {
     var cred = new UserCredentials();
     Assert.IsNull(cred.UserName);
     Assert.IsNull(cred.Password);
 }