public async Task DeleteEntry() { try { PhoneBookService service = new PhoneBookService(new GenericRepository <PhoneBook, int>(), new GenericRepository <Entry, int>()); var phoneBooks = await service.SearchPhoneBook("Van der Merwe"); foreach (var phoneBook in phoneBooks) { await service.DeletePhoneBookEntry(phoneBook); } Assert.IsTrue(true); } catch (Exception) { Assert.Fail(); } }