public void TestTestAddressCodeParse()
        {
            AddressCode addressCode = AddressCode.Parse(ZipCodeUf.SP, "SÃO PAULO", "AVENIDA");

            Assert.AreEqual(ZipCodeUf.SP, addressCode.Uf);
            Assert.AreEqual("SÃO PAULO", addressCode.City);
            Assert.AreEqual("AVENIDA", addressCode.Address);
            Assert.IsInstanceOfType(addressCode.GetType(), typeof(AddressCode).GetType());
        }
Exemplo n.º 2
0
 public async Task TestAddressCodeLoadFindAsyncException()
 {
     try
     {
         await AddressCodeLoad.FindAsync(AddressCode.Parse(ZipCodeUf.SP, "", ""));
     }
     catch (AddressCodeException ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public void TestAddressCodeLoadFindException()
 {
     try
     {
         AddressCodeLoad.Find(AddressCode.Parse(ZipCodeUf.SP, "", ""));
     }
     catch (AddressCodeException ex)
     {
         throw ex;
     }
 }
 public void TestTestAddressCodeParseException()
 {
     AddressCode.Parse(ZipCodeUf.SP, "", "");
 }