예제 #1
0
        public void GetItemsByIdsTest()
        {
            var itemIds = new List <int> {
                _configData.ItemId
            };
            var itemObject = _clientObject.GetItemsByIds(itemIds);

            Assert.IsNotNull(itemObject);
            Assert.AreEqual(itemObject.ToList()[0].Data.Id, _configData.ItemId);
            Assert.AreEqual(itemObject.ToList().Count, 1);
        }
예제 #2
0
        public void GetItemsByIds_InvalidCredential()
        {
            var invalidCredential = new GcConnectClient("abc",
                                                        _configData.Email);
            var itemIds = new List <int> {
                1577, 333333
            };
            var itemObject = invalidCredential.GetItemsByIds(itemIds);

            Assert.IsNotNull(itemObject);
            Assert.AreEqual(itemObject.ToList()[0].Data, null);
            Assert.AreEqual(itemObject.ToList()[1].Data, null);
            Assert.AreEqual(itemObject.ToList().Count, 2);
        }