Hi,
I have so far been coding by doing mostly Get methods in my business/service layer using Rhino Mocks to get an expected List or type and making Rhino Mocks return it for me, my question is how do I test a set/save call, e.g void SaveCustomers(Customer)
I have a call called GetCustomers
, can I use Rhino mocks to call this immediately after my SaveCustomers
call to see if it saved it into memory? I have tried this my mocking my repo and calling it but it returns a null, what is the correct syntax? I can't find an example using StrictMock or GenerateStub.
Thanks!