示例#1
0
        public void ShouldNotCreateAddressWhenInvalidCountry()
        {
            var address = new Address(3060, "Rua Mentor Couto", "Engenho Pequeno", "São Gonçalo", "RJ", "");

            Assert.AreEqual(false, AddressScope.AddressValid(address));
        }
示例#2
0
        public void ShouldNotCreateAddressWhenInvalidStreet()
        {
            var address = new Address(3060, "", "Engenho Pequeno", "São Gonçalo", "RJ", "BR");

            Assert.AreEqual(false, AddressScope.AddressValid(address));
        }
示例#3
0
        public void ShouldNotCreateAddressWhenInvalidNeighborhood()
        {
            var address = new Address(3060, "Rua Mentor Couto", "", "São Gonçalo", "RJ", "BR");

            Assert.AreEqual(false, AddressScope.AddressValid(address));
        }
示例#4
0
        public void ShouldCreateAddress()
        {
            var address = new Address(3060, "Rua Mentor Couto", "Engenho Pequeno", "São Gonçalo", "RJ", "BR");

            Assert.AreEqual(true, AddressScope.AddressValid(address));
        }