示例#1
0
        public void Equals_GivenDifferentEmail_FalseShouldBeReturned()
        {
            var countryId = Guid.NewGuid();

            var contact      = new AatfContact("f", "l", "p", "a1", "a2", "t", "c", "p", countryId, "te", "z");
            var otherContact = new AatfContact("f", "l", "p", "a1", "a2", "t", "c", "p", countryId, "te", "e");

            contact.Equals(otherContact).Should().BeFalse();
        }
示例#2
0
        public void Equals_GivenSameContact_TrueShouldBeReturned()
        {
            var countryId = Guid.NewGuid();

            var contact      = new AatfContact("f", "l", "p", "a1", "a2", "t", "c", "p", countryId, "te", "e");
            var otherContact = new AatfContact("f", "l", "p", "a1", "a2", "t", "c", "p", countryId, "te", "e");

            contact.Equals(otherContact).Should().BeTrue();
        }