public void UpdateContactNumberToExistingContactNumbersTelephoneNumberOnContactNumberService()
        {
            //arrange
            ContactNumberService contactNumberService = new ContactNumberService(MockUnitOfWork.Object);

            //set email to that of another contact in that users Phonebook
            var contactNumberToUpdate = testContext.SingleContact.ContactNumbers.Where((x, i) => i == 0).FirstOrDefault();

            contactNumberToUpdate.TelephoneNumber = testContext.SingleContact.ContactNumbers.Where((x, i) => i == 1).FirstOrDefault().TelephoneNumber;

            //act
            contactNumberService.Update(contactNumberToUpdate);

            //assert - expected exception

            contactNumberService.Dispose();
        }
        public void UpdateContactNumberOnContactNumberService()
        {
            //arrange
            ContactNumberService contactNumberService = new ContactNumberService(MockUnitOfWork.Object);

            //set email to that of another contact in that users Phonebook
            var contactNumberToUpdate = testContext.SingleContact.ContactNumbers.Where((x, i) => i == 0).FirstOrDefault();

            contactNumberToUpdate.TelephoneNumber = contactNumberToUpdate.TelephoneNumber + "01";

            //act
            contactNumberService.Update(contactNumberToUpdate);

            //assert
            MockContactNumberRepository.Verify(y => y.Update(It.IsAny <ContactNumber>()));

            contactNumberService.Dispose();
        }