//You'll need to change the filter term to something meaningful. public void FilterUsersByName() { var name = "john hoerr"; EnterpriseUserCollection enterpriseUserCollection = Client.GetUsers(name); Assert.That(enterpriseUserCollection.TotalCount, Is.EqualTo(1)); Assert.That(enterpriseUserCollection.Entries.Single().Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)); }
//You'll need to change the filter term to something meaningful. public void FilterUsersByEmail() { var login = "******"; EnterpriseUserCollection enterpriseUserCollection = Client.GetUsers(login); Assert.That(enterpriseUserCollection.TotalCount, Is.EqualTo(1)); Assert.That(enterpriseUserCollection.Entries.Single().Login.Equals(login, StringComparison.InvariantCultureIgnoreCase)); }
// This could be more than one, depending on how your account is set up. // If you're an enterprise admin, the user collection will contain all users in the enterprise. public void GetAllUsers() { EnterpriseUserCollection enterpriseUserCollection = Client.GetUsers(); Assert.That(enterpriseUserCollection.TotalCount, Is.EqualTo(2)); }