public void GetOrganizationByOrgnoTest(string orgno) { // Arrange IRestQuery query = new RestQuery(this.config); // Act Organization org = query.Get <Organization>(orgno); // Assert Assert.IsNotNull(org); Assert.IsTrue(!string.IsNullOrEmpty(org.Name)); }
public void GetOrgnizationsByEmailTest(string email) { // Arrange IRestQuery query = new RestQuery(this.config); // Act IList <Organization> orglist = query.Get <Organization>(new KeyValuePair <string, string>("email", email)); // Assert Assert.IsNotNull(orglist); Assert.IsTrue(orglist.Count > 0 && !string.IsNullOrEmpty(orglist[0].Name)); }
public void GetRoleByRoleGiverAndRoleReciver(string roleGiver, string roleReciver) { // Arrange IRestQuery query = new RestQuery(this.config); // Act IList <Role> roles = query.Get <Role>(new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("Subject", roleGiver), new KeyValuePair <string, string>("Reportee", roleReciver) }); // Assert Assert.IsNotNull(roles); Assert.IsTrue(roles.Count > 0); }