Esempio n. 1
0
        public async Task CanGetPPSDepartmentByOrgOId()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PpsDepartment.Search(PPSDepartmentSearchField.orgOId, "F80B657CA26C23A0E0340003BA8A560D");

            Assert.AreEqual(result.ResponseStatus, 0);
            Assert.AreEqual(result.ResponseData.Results[0].deptDisplayName, "AGR & ENV SCI DEANS OFFICE");
            Assert.IsNotNull(client);
        }
Esempio n. 2
0
        public async Task CanGetPPSDepartmentWhenNotFound()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PpsDepartment.Search(PPSDepartmentSearchField.deptCode, "099000");

            Assert.AreEqual(result.ResponseStatus, 0);
            Assert.AreEqual(result.ResponseData.Results.Length, 0);
            Assert.IsNotNull(client);
        }
Esempio n. 3
0
        public async Task CanGetPPSDepartmentByDeptCode()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PpsDepartment.Search(PPSDepartmentSearchField.deptCode, "030000");

            Assert.AreEqual(result.ResponseStatus, 0);
            Assert.AreEqual(result.ResponseData.Results[0].deptDisplayName, "AGR & ENV SCI DEANS OFFICE");
            Assert.IsNotNull(client);
        }
Esempio n. 4
0
        public async Task CanGetPersonInfo()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.People.Get("1000029584");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000029584");

            Assert.IsNotNull(client);
        }
Esempio n. 5
0
        public async Task CanGetPPSAssociationsWithPeopleReturnType()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PPSAssociations.Search <PeopleResults>(PPSAssociationsSearchField.iamId, "1000029584", "people");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000029584");

            Assert.IsNotNull(client);
        }
Esempio n. 6
0
        public async Task CanGetPPSIamIds()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PPSAssociations.GetIamIds(PPSAssociationsSearchField.deptCode, "030003");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.IsTrue(result.ResponseData.Results.Length > 500);

            Assert.IsNotNull(client);
        }
Esempio n. 7
0
        public async Task CanSearchContactEmail()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.Contacts.Search(ContactSearchField.email, "*****@*****.**");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000029584");

            Assert.IsNotNull(client);
        }
Esempio n. 8
0
        public async Task CanGetKerberos()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.Kerberos.Search(KerberosSearchField.iamId, "1000029584");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000029584");

            Assert.IsNotNull(client);
        }
Esempio n. 9
0
        public async Task CanGetPersonInfo3()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.People.Search(PeopleSearchField.employeeId, "10220155");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000009309");
            Assert.AreEqual(result.ResponseData.Results[0].EmployeeId, "10220155");

            Assert.IsNotNull(client);
        }
Esempio n. 10
0
        public async Task CanGetPPSAssociationsSupervisorIamId()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.PPSAssociations.Search(PPSAssociationsSearchField.iamId, "1000009309");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000009309");
            Assert.AreEqual(result.ResponseData.Results[0].reportsToIAMID, "1000029584");

            Assert.IsNotNull(client);
        }
Esempio n. 11
0
        public async Task CanGetPronounInfo3()
        {
            var client = new Ietws.IetClient(key);
            var result = await client.People.Get("1000219473");

            // 0 is success
            Assert.AreEqual(result.ResponseStatus, 0);

            Assert.AreEqual(result.ResponseData.Results[0].IamId, "1000219473");
            Assert.AreEqual(result.ResponseData.Results[0].DPronouns, "He, Him");

            Assert.IsNotNull(client);
        }
Esempio n. 12
0
 public PeopleRequests(IetClient client) : base(client)
 {
 }
Esempio n. 13
0
 public ContactRequests(IetClient client) : base(client)
 {
 }
Esempio n. 14
0
 public KerberosRequests(IetClient client) : base(client)
 {
 }
Esempio n. 15
0
 public PPSAssociationsRequests(IetClient client) : base(client)
 {
 }
Esempio n. 16
0
 public RequestBase(IetClient client)
 {
     this.client     = client;
     this.QueryItems = new Dictionary <string, string>();
 }