Example #1
0
        public void ProducerAddress_EqualsProducerAddressDifferentCountry_ReturnsFalse()
        {
            var producerAddress = ProducerAddressBuilder.WithCountry(new AlwaysUnequalCountry());
            var producerAddress2 = ProducerAddressBuilder.WithCountry(new AlwaysUnequalCountry());

            Assert.NotEqual(producerAddress, producerAddress2);
        }
Example #2
0
        public void ProducerAddress_ToString_ReturnsConcatenatedString()
        {
            var producerAddress = ProducerAddressBuilder.WithCountry(new Country(Guid.NewGuid(), "TestCountry"));

            var address = producerAddress.ToString();

            Assert.Equal("PrimaryName, SecondaryName, Street, Town, Locality, AdministrativeArea, PostCode, TestCountry", address);
        }