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); }
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)); }