示例#1
0
        public void Reproduce_issue_178_OneToMany()
        {
            // ARRANGE
            IOrganizationService fakedService = Arrange();

            using (var ctx = new XrmServiceContext(fakedService))
            {
                // ACT
                var account = ctx.AccountSet.First();
                ctx.LoadProperty(account, "contact_customer_accounts");   // THis will trigger the RetrieveRelationshipRequest

                // ASSERT
                Assert.NotNull(account.contact_customer_accounts);
            }
        }
示例#2
0
        public void Reproduce_issue_178_ManyToMany()
        {
            // ARRANGE
            IOrganizationService fakedService = Arrange();

            using (var ctx = new XrmServiceContext(fakedService))
            {
                // ACT
                var contact = ctx.ContactSet.First();
                ctx.LoadProperty(contact, "gbp_gbp_customaddress_contact");   // THis will trigger the RetrieveRelationshipRequest

                // ASSERT
                Assert.NotNull(contact.gbp_gbp_customaddress_contact);
            }
        }