public void GetContacts() { var controller = new ContactManagerController(new ContactStore()); var contacts = controller.Get(); Assert.IsTrue(contacts.Count() > 0); }
public bool GetContact(int id) { var controller = new ContactManagerController(new ContactStore()); var contact = controller.Get(id); if (contact != null) { return(id == contact.ContactId); } return(false); }