public void GetTemplatesByIdsTest() { var templateIds = new List <int> { _configData.TemplateId }; var templateObject = _clientObject.GetTemplatesByIds(templateIds); Assert.IsNotNull(templateObject); Assert.AreEqual(templateObject.ToList()[0].Data.Id, _configData.TemplateId); Assert.AreEqual(templateObject.ToList().Count, 1); }
public void GetTemplatesByIds_InvalidCredential() { var invalidCredential = new GcConnectClient("abc", _configData.Email); var templateIds = new List <int> { _configData.TemplateId }; var templateObject = invalidCredential.GetTemplatesByIds(templateIds); Assert.IsNotNull(templateObject); Assert.AreEqual(templateObject.ToList()[0].Data, null); Assert.AreEqual(templateObject.ToList().Count, 1); }