Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }