コード例 #1
0
        public void GetAllAccounts_Retrieves_All_Accounts()
        {
            var orgService = CreateTestingContext();

            IAccountQueries queryEngine = new AccountQueries(orgService);

            var results = queryEngine.GetAllAccounts();

            Assert.True(results.Count == 9);

            Assert.All(results, (x) => x.Contains(CrmObject.Account.Fields.AccountId));
            Assert.All(results, x => x.Id.Equals(x.AccountId.Value));
        }