Hi I have a mock as below:
MockRepository mocks = new MockRepository();
ILoanRepository loanRepo = mocks.StrictMock<ILoanRepository>();
SetupResult.For(loanRepo.GetLoanExtended("sdfsdf")).Return(list.AsEnumerable<Loan>());
mocks.ReplayAll();
My question is I have seen the above being use in using statements e.g
using (mocks.Record()) { // code here }
using (mocks.Playback()) { // code here }
What is the purpose of this and difference to what I've done?