public void TestChangeEmailAddress()
        {
            ContactInformation contactInformation = this.ContactInformation();
            ContactInformation contactInformationCopy = new ContactInformation(contactInformation);

            const string changeEmailAddress = "*****@*****.**";
            ContactInformation contactInformation2 = contactInformation.ChangeEmailAddress(new EmailAddress(changeEmailAddress));

            Assert.AreEqual(contactInformationCopy, contactInformation);
            Assert.IsFalse(contactInformation.Equals(contactInformation2));
            Assert.IsFalse(contactInformationCopy.Equals(contactInformation2));

            Assert.AreEqual(changeEmailAddress, contactInformation2.EmailAddress.Address);
        }
        public void TestChangePrimaryTelephone()
        {
            ContactInformation contactInformation = this.ContactInformation();
            ContactInformation contactInformationCopy = new ContactInformation(contactInformation);

            const string changeNumber = "720-555-1212";
            ContactInformation contactInformation2 =
                contactInformation.ChangePrimaryTelephone(new Telephone(changeNumber));

            Assert.AreEqual(contactInformationCopy, contactInformation);
            Assert.IsFalse(contactInformation.Equals(contactInformation2));
            Assert.IsFalse(contactInformationCopy.Equals(contactInformation2));

            Assert.AreEqual(changeNumber, contactInformation2.PrimaryTelephone.Number);
        }
        public void TestChangePostalAddress()
        {
            ContactInformation contactInformation = this.ContactInformation();
            ContactInformation contactInformationCopy = new ContactInformation(contactInformation);

            ContactInformation contactInformation2 = contactInformation.ChangePostalAddress(
                new PostalAddress("321 Mockingbird Lane", "Denver", _stateProvince, "81121", _countryCode));

            Assert.AreEqual(contactInformationCopy, contactInformation);
            Assert.IsFalse(contactInformation.Equals(contactInformation2));
            Assert.IsFalse(contactInformationCopy.Equals(contactInformation2));

            Assert.AreEqual("321 Mockingbird Lane", contactInformation2.PostalAddress.StreetAddress);
            Assert.AreEqual("Denver", contactInformation2.PostalAddress.City);
            Assert.AreEqual(_stateProvince, contactInformation.PostalAddress.StateProvince);
        }