Пример #1
0
        private ContactReader GetContactReaderFromSingleDatabaseRow(ContactDatabaseRow row)
        {
            MockContactDatabaseReader mockReader = new MockContactDatabaseReader();

            mockReader.AddRow(row);
            ContactReader contactReader = new ContactReader();

            contactReader.ParseDatabase(mockReader);

            return(contactReader);
        }
Пример #2
0
        private IContact GetContactFromSingleDatabaseRow(ContactDatabaseRow row)
        {
            ContactReader contactReader = GetContactReaderFromSingleDatabaseRow(row);

            return(new List <IContact>(contactReader)[0]);
        }