예제 #1
0
        public void GetAccountsByIdsTest()
        {
            var idList = new List <int> {
                _configData.AccountId
            };
            var accountObject = _clientObject.GetAccountsByIds(idList);

            Assert.IsNotNull(accountObject);
            Assert.AreEqual(accountObject.ToList()[0].Data.Id, _configData.AccountId.ToString());
            Assert.AreEqual(accountObject.ToList().Count, 1);
        }
예제 #2
0
        public void GetAccountsByIds_InvalidCredential()
        {
            var invalidCredential = new GcConnectClient("abc",
                                                        "*****@*****.**");
            var idList = new List <int>()
            {
                _configData.AccountId
            };
            var accountObject = invalidCredential.GetAccountsByIds(idList);

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