public void CreateMultiEntityAssociationTest() { OrganizationRequest orgReq = null; Guid accountId = Guid.NewGuid(); Guid contactId = Guid.NewGuid(); BCrmServiceClient.MockCrmCommandExecute(); List <Guid> lst = new List <Guid>(); lst.Add(accountId); lst.Add(contactId); bool result = crmaction.CreateMultiEntityAssociation("account", contactId, "contact", lst, "some rel"); Assert.IsTrue(result); orgReq = BCrmServiceClient.GetRequest(typeof(AssociateRequest)); Assert.IsNotNull(((AssociateRequest)orgReq).RelatedEntities); Assert.IsNotNull(((AssociateRequest)orgReq).Target); }