Hi, I am trying to create a unit test similar to how I would have done one in C# but am struggling with the lambdas in vb.
Bascially I am trying to mock a class and then create a stub and return. In C# I would have done something like;
MockedPersonRepository
.Stub(x => x.Find(id))
.Return(person)
But in visual basic I am trying to do a similar thing but can not work out the syntax
MockedPersonRepository.Stub(Function... argh!!!
Any advice on how to reproduce the above would be greatly appreciated!
Kind regards, Dom