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); }
public void GetUser_WithNullHash_ThrowException() { var service = new DataService(); service.GetUserByHash(null, APPKEY); }