public void CreateMultiEntityAssociationTest() { Mock <IOrganizationService> orgSvc = null; Mock <MoqHttpMessagehander> fakHttpMethodHander = null; CdsServiceClient cli = null; testSupport.SetupMockAndSupport(out orgSvc, out fakHttpMethodHander, out cli); AssociateResponse associateEntitiesResponse = new AssociateResponse(); orgSvc.Setup(f => f.Execute(It.IsAny <AssociateRequest>())).Returns(associateEntitiesResponse); Guid accountId = Guid.NewGuid(); Guid contactId = Guid.NewGuid(); List <Guid> lst = new List <Guid>(); lst.Add(accountId); lst.Add(contactId); bool result = cli.CreateMultiEntityAssociation("account", contactId, "contact", lst, "some rel"); Assert.True(result); }