Пример #1
0
        public void EditContact_IdsNotMatching()
        {
            int id = 1, id2 = 2;
            var repo    = new ContactRepo(null);
            var contact = new Contact()
            {
                Id = id, FirstName = "Kevin", LastName = null
            };

            var result = repo.EditContact(id2, contact);

            Assert.False(result);
        }
Пример #2
0
        public void EditContact_FirstAndLastIsNullOrWhiteSpace()
        {
            var id      = 1;
            var repo    = new ContactRepo(null);
            var contact = new Contact()
            {
                Id = id, FirstName = null, LastName = null
            };

            var result = repo.EditContact(id, contact);

            Assert.False(result);
        }