Written June 28, 2006 at 10:53 MDT Tagged .net 2.0, c sharp, patterns and screencasts
For those of you who are following along with my Applied TDD series there is one refactoring I forgot to do yesterday:
using (mockery.Ordered())
{
Expect.Call(mockTask.GetAllContacts()).Return(mockResults);
mockView.Contacts = mockResults;
}
Notice the bolded code. It used to read mockView.Employees. Halfway through the session I decided to first tackle displaying a list of contacts and not employees.