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); }
public ContactsController(IContactsEngine contactsEngine) { _contactsEngine = contactsEngine; }