예제 #1
0
        public void BeParsedToBrazilianFormat(
            CaseFormat caseFormat,
            string street,
            int?number,
            string complement,
            string district,
            string city,
            string state,
            string zipCode,
            string value)
        {
            var formatedValue = AddressFunctions.ToBrazilianFormat(street, number, complement, district, city, state, zipCode, caseFormat);

            Assert.Equal(value, formatedValue);
        }
예제 #2
0
 public override string ToString()
 {
     return(AddressFunctions.ToBrazilianFormat(this.Street, this.Number, this.Complement, this.District, this.City, (string.IsNullOrWhiteSpace(this.State?.Abbreviation) ? this.State?.Name : this.State?.Abbreviation), this.ZipCode));
 }