Example #1
0
        public void GetProjectsByIdsTest()
        {
            var idList = new List <int> {
                _configData.ProjectId
            };
            var projectObject = _clientObject.GetProjectsByIds(idList);

            Assert.IsNotNull(projectObject);
            Assert.AreEqual(projectObject.ToList()[0].Data.Id, _configData.ProjectId);
            Assert.AreEqual(projectObject.ToList().Count, 1);
        }
Example #2
0
        public void GetProjectsByIds_InvalidCredential()
        {
            var invalidCredential = new GcConnectClient("abc",
                                                        "*****@*****.**");
            var idList = new List <int>()
            {
                100013, 003614
            };
            var projectObject = invalidCredential.GetProjectsByIds(idList);

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