public void GetStatusesByIdsTest() { var idList = new List <int> { _configData.StatusId }; var statusObject = _clientObject.GetStatusesByIds(_configData.ProjectId, idList); Assert.AreEqual(statusObject.ToList()[0].Data.Id, _configData.StatusId.ToString()); Assert.AreEqual(statusObject.ToList().Count, 1); }
public void GetStatusesByIds_InvalidCredential() { var invalidCredential = new GcConnectClient("abc", _configData.Email); var idList = new List <int>() { 558644, 558649 }; var statusObject = invalidCredential.GetStatusesByIds(103613, idList); Assert.AreEqual(statusObject.ToList()[0].Data, null); Assert.AreEqual(statusObject.ToList()[1].Data, null); Assert.AreEqual(statusObject.ToList().Count, 2); }