Skip to content

MockLocaleLocation

ClassMockMagiccom.wetzold.mock-magic
public sealed class MockLocaleLocation

A coherent project-supplied city, region and postal-code tuple.

MockLocaleLocation(string, string, string)

Section titled “MockLocaleLocation(string, string, string)”
public MockLocaleLocation(string city, string region, string postalCode)

Creates a city, region and postal-code tuple without formatting its values.

Parameters

NameTypeDescription
citySystem.StringThe city name to retain as supplied; definitions require a nonblank city when adding locations.
regionSystem.StringThe region value, with null stored as an empty string.
postalCodeSystem.StringThe postal-code value, with null stored as an empty string.

public string City { get; }

Returns

System.String

public string Region { get; }

Returns

System.String

public string PostalCode { get; }

Returns

System.String