I am using mock testing. I want to simply ask what mock.record() and mock.playback() do.
If any simple eexample will be provided it will be highly appreciated…
I am using mock testing. I want to simply ask what mock.record() and mock.playback()
Share
In “record” you can record an action, for example the executing of a stored procedure or the retrieving of a records from the database and putting them in a datatable In “playback” the recored action is played back when that piece of code gets hit.
Rhinomocks example
Instead of doing a real database call in SomeText.GetHtml. The mockdatatable is returned by the method.