public void AssignEntityToUserTest() { Mock <IOrganizationService> orgSvc = null; Mock <MoqHttpMessagehander> fakHttpMethodHander = null; CdsServiceClient cli = null; testSupport.SetupMockAndSupport(out orgSvc, out fakHttpMethodHander, out cli); AssignResponse assignResponse = new AssignResponse(); orgSvc.Setup(f => f.Execute(It.IsAny <AssignRequest>())).Returns(assignResponse); bool result = cli.AssignEntityToUser(testSupport._DefaultId, "account", testSupport._DefaultId); Assert.True(result); }