public void GetDevelopers_CalledWithoutParameters_ReturnsActiveDevelopersOnly() { TP tp = new TP(new TPWebServiceClient()); tp.TPWebServiceClient = new TPWebServiceClient(); Users developers = tp.GetDevelopers(); Assert.That(developers.Items, Has.All.Matches <User>(u => u.IsActive == true)); }
public void GetDevelopers_CalledWithParameterIncludeInActiveSetToTrue_ReturnsActiveAndInActiveDevelopers() { TP tp = new TP(new TPWebServiceClient()); tp.TPWebServiceClient = new TPWebServiceClient(); Users developers = tp.GetDevelopers(true); Assert.That(developers.Items, Has.Some.Matches <User>(u => u.IsActive == false)); }
public void GetDevelopers_CalledWithoutParameters_ReturnsMoreThanOneDeveloper() { TP tp = new TP(new TPWebServiceClient()); tp.TPWebServiceClient = new TPWebServiceClient(); Users developers = tp.GetDevelopers(); Assert.Greater(developers.Items.Count, 0); }