Esempio n. 1
0
 public void FindSaltByUserNameTest()
 {
     try
     {
         UserCtrl userCtrl = new UserCtrl();
         string   salt     = userCtrl.FindSaltByUserName("Aksel");
         string   saltInDB = "yR9c4qazcTfrnEJb8USdqruRe+3+iq/s95r+GmFJW0ed" +
                             "AvJLGgHbW0o59L+JGMWWB9aU4SSa5Z24n37laq+DeA==";
         Assert.IsTrue(salt.Equals(saltInDB));
     }
     catch (FaultException <UserOrPasswordException> )
     {
         Assert.Fail();
     }
     catch (FaultException <DbConnectionException> )
     {
         Assert.Fail();
     }
 }
Esempio n. 2
0
 public string FindSaltByUserName(string userName)
 {
     _userCtrl = new UserCtrl();
     return(_userCtrl.FindSaltByUserName(userName));
 }