예제 #1
0
 public void GetUser_WithNonExistingUsername_ByHash_ThrowException()
 {
     string username = "******";
     string password = "******";
     var hasher = SHA256.Create();
     var hashbytes = hasher.ComputeHash(Encoding.ASCII.GetBytes(username + password));
     var service = new DataService();
     service.GetUserByHash(Encoding.ASCII.GetString(hashbytes), APPKEY);
 }
예제 #2
0
 public void GetUser_WithNullHash_ThrowException()
 {
     var service = new DataService();
     service.GetUserByHash(null, APPKEY);
 }