public static GeographicAddressObject CreateAddress(string id, string addressLine, string city, string regionOrState, string zipOrPostalCode, string countryId, DateTime?validFrom = null, DateTime?validTo = null) { var r = new GeographicAddressDbRecord { ID = id, Address = addressLine, ZipOrPostCodeOrExtension = zipOrPostalCode, RegionOrStateOrCountryCode = regionOrState, CityOrAreaCode = city, CountryID = countryId, ValidFrom = validFrom ?? DateTime.MinValue, ValidTo = validTo ?? DateTime.MaxValue }; return(new GeographicAddressObject(r)); }
private static void validateGeographivAddress(GeographicAddressDbRecord actual, GeographicAddressDbRecord expected) { if (!(actual is null)) { Assert.AreEqual(actual.CountryID, expected.CountryID); }
private static GeographicAddressObject create(GeographicAddressDbRecord dbRecord) { return(new GeographicAddressObject(dbRecord)); }