public void UpdateContact_UpdatesContact_IfItExists()
        {
            var repository = new PhoneBookRepository(_soundexFilter)
            {
                ConnectionString = _connectionString
            };
            repository.SetOwnerGuid(_guid);

            var newContact = new Contact();
            repository.AddContact(newContact);
            var updatedContact = newContact;
            updatedContact.FirstName = "John";
            updatedContact.LastName = "Doe";
            repository.UpdateContact(updatedContact);
            var expected = updatedContact;
            var result = repository.GetContact(updatedContact.Id);

            Assert.True(EqualContacts(expected, result));
        }
        public void UpdateContact_ReturnsFalse_IfContactDoesNotExists()
        {
            var repository = new PhoneBookRepository(_soundexFilter)
            {
                ConnectionString = _connectionString
            };
            repository.SetOwnerGuid(_guid);

            var newContact = new Contact();
            newContact.Id = 9999;
            var result = repository.UpdateContact(newContact);

            Assert.False(result);
        }