Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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);
        }