Пример #1
0
 public ContactsEngineTests()
 {
     // Notice how we can sub in a fake accessor to run tests with,
     // one that we know works for sure and doesn't have to use a database
     _mockedContactsAccessor = new MockedContactsAccessor();
     _contactsEngine         = new ContactsEngine(_mockedContactsAccessor);
 }
Пример #2
0
 public ContactsController(IContactsEngine contactsEngine)
 {
     _contactsEngine = contactsEngine;
 }