Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }