public void ShouldNotCreateAddressWhenInvalidCountry() { var address = new Address(3060, "Rua Mentor Couto", "Engenho Pequeno", "São Gonçalo", "RJ", ""); Assert.AreEqual(false, AddressScope.AddressValid(address)); }
public void ShouldNotCreateAddressWhenInvalidStreet() { var address = new Address(3060, "", "Engenho Pequeno", "São Gonçalo", "RJ", "BR"); Assert.AreEqual(false, AddressScope.AddressValid(address)); }
public void ShouldNotCreateAddressWhenInvalidNeighborhood() { var address = new Address(3060, "Rua Mentor Couto", "", "São Gonçalo", "RJ", "BR"); Assert.AreEqual(false, AddressScope.AddressValid(address)); }
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)); }