public void ListReturnsValidData() { //usually this would not use the actual repository but a mocked instance using MOQ or similar var repo = new Contacts.ContactRepository(); var contacts = repo.List(); Assert.IsNotNull(contacts); }
public void GetReturnsValidData() { //usually this would not use the actual repository but a mocked instance using MOQ or similar var repo = new Contacts.ContactRepository(); var contact = repo.Get(1); Assert.AreEqual(1, contact.Id); }