I'm trying to work out how this Mock (using the Moq framework) stuff all works, but I've become a bit confused with methods that return void.
The original object has the following methods/properties:
void Add(Person entity);
void Save();
IQueryable<Person> Persons;
The Add method calls InsertOnSubmit (it's Linq to sql), and the Save method calls Context.SubmitChanges(). The Person's property returns the Table<News> object.
I'm not sure how I go about mocking these methods however, as I obviously can't use Returns().
Or does my design mean that I can't actually Mock the objects properly?