public void GetObjectCollectionTest() { var projectIds = new List <int>() { _configData.ProjectId }; var someDataObject = _serviceObject.GetObjectCollection("projects/", projectIds); Assert.IsNotNull(someDataObject); Assert.AreEqual(someDataObject.ToList()[0].Data.Id, _configData.ProjectId); Assert.AreEqual(someDataObject.ToList().Count, 1); }
public void GetObjectCollection_InvalidCredential() { var projectIds = new List <int> { _configData.ProjectId }; _serviceObject = new GcDataRepository <GcProject>("123", _configData.Email); var someDataObject = _serviceObject.GetObjectCollection("projects/", projectIds); Assert.IsNotNull(someDataObject); Assert.AreEqual(someDataObject.ToList()[0].Data, null); Assert.AreEqual(someDataObject.ToList().Count, 1); }
public ICollection <GcDataObject <GcAccount> > GetAccountsByIds(IEnumerable <int> accountIds) { return(_accountClient.GetObjectCollection("accounts/", accountIds.ToList())); }
public ICollection <GcDataObject <GcTemplate> > GetTemplatesByIds(List <int> templateIds) { return(_templateClient.GetObjectCollection("templates/", templateIds)); }
public ICollection <GcDataObject <GcItem> > GetItemsByIds(List <int> itemIds) { return(_itemClient.GetObjectCollection("items/", itemIds)); }
public ICollection <GcDataObject <GcStatus> > GetStatusesByIds(int projectId, IEnumerable <int> statusIds) { var urlPath = $"projects/{projectId}/statuses/"; return(_statusClient.GetObjectCollection(urlPath, statusIds.ToList())); }
public ICollection <GcDataObject <GcProject> > GetProjectsByIds(List <int> projectIds) { return(_projectClient.GetObjectCollection("projects/", projectIds)); }