Mocking lambda in rhino mocks

Posted by Coppermill on Stack Overflow See other posts from Stack Overflow or by Coppermill
Published on 2010-04-07T14:57:25Z Indexed on 2010/04/07 15:23 UTC
Read the original article Hit count: 309

I am trying to use Rhino Mocks to mock the following lambda, but keep hitting a brick wall

var result = rep.Find<T>(x => (x as IEntity).ID == (entity as IEntity).ID).FirstOrDefault();

Any ideas?

© Stack Overflow or respective owner

Related posts about rhino-mocks

Related posts about lambda-expressions