Exemple #1
0
        private void LookupTest()
        {
            /*
             * Lookup field
             * */
            //Valid values
            var expectedLookup = XrmEntity.CreateLookup(Entities.account, Guid.Empty);
            var actualLookup   = XrmService.ParseField(Fields.jmcg_testentity_.jmcg_account, Entities.jmcg_testentity, expectedLookup);

            Assert.IsTrue(XrmEntity.GetLookupGuid(expectedLookup) == Guid.Empty);
            Assert.IsTrue(XrmEntity.GetLookupType(expectedLookup) == Entities.account);
        }