public async Task AddPhoneBookEntryTest() { try { PhoneBookService service = new PhoneBookService(new GenericRepository <PhoneBook, int>(), new GenericRepository <Entry, int>()); var phoneBook = new PhoneBook { FirstName = "Tim", Lastname = "Van der Merwe", Entry = new List <Entry> { new Entry { Name = "Cell", TelephoneNumber = "0921234567" }, new Entry { Name = "Fax", TelephoneNumber = "0114671234" } } }; await service.AddPhoneBookEntry(phoneBook); Assert.IsTrue(true); } catch (Exception) { Assert.Fail(); } }