コード例 #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));
 }
コード例 #3
0
 // GET: api/Default
 public IHttpActionResult Get()
 {
     return(Ok(AddressFunctions.city()));
 }