public AddressBookService(IContactsDataAccess contactsDataAccess, IPhoneNumbersDataAccess phoneNumbersDataAccess)
        {
            this.contactsDataAccess = contactsDataAccess;

            this.phoneNumbersDataAccess = phoneNumbersDataAccess;
        }
Beispiel #2
0
 public ContactsService(IContactsDataAccess contactsDataAccess)
 {
     _contactsDataAccess = contactsDataAccess;
 }
        public ContactsController(IContactsDataAccess dataAccess)

        {
            _dataAccess = dataAccess;
        }
 public TestContactsController()
 {
     _dataAccess = new ContactsDataAccessFake();
     _controller = new ContactsController(_dataAccess);
 }