Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/EquatorialGuineaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class EquatorialGuineaTest : AssertCountryTestBase
private const string EQUATORIALGUINEA_NAME = "EquatorialGuinea";
private const string EQUATORIALGUINEA_OFFICIAL_NAME = "Republic of Equatorial Guinea";
private const string EQUATORIALGUINEA_NATIVE_NAME = "República de Guinea Ecuatorial";
private const string EQUATORIALGUINEA_CAPITAL = "Malabo";
private const string EQUATORIALGUINEA_CAPITAL = "Ciudad de la Paz";
private const int EQUATORIALGUINEA_NUMERIC_CODE = 226;
private const string EQUATORIALGUINEA_ISO2_CODE = "GQ";
private const string EQUATORIALGUINEA_ISO3_CODE = "GNQ";
Expand Down
1 change: 1 addition & 0 deletions src/World.Net.UnitTests/Countries/EthiopiaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ private static readonly (string Name, string IsoCode, string Type)[] ExpectedSta
new("Oromia", "OR", "Region"),
new("Sidama", "SI", "Region"),
new("Somali", "SO", "Region"),
new("South West Ethiopia Peoples' Region", "SW", "Region"),
new("Southern Nations, Nationalities, and Peoples' Region", "SN", "Region"),
new("Tigray", "TI", "Region")
};
Expand Down
39 changes: 21 additions & 18 deletions src/World.Net.UnitTests/Countries/KazakhstanTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,34 @@ public sealed class KazakhstanTest : AssertCountryTestBase
private const CountryIdentifier ExpectedId = CountryIdentifier.Kazakhstan;
private const string ExpectedName = "Kazakhstan";
private const string ExpectedOfficialName = "Republic of Kazakhstan";
private const string ExpectedNativeName = "?????????";
private const string ExpectedNativeName = "Қазақстан";
private const string ExpectedCapital = "Astana";
private const int ExpectedNumericCode = 398;
private const string ExpectedISO2Code = "KZ";
private const string ExpectedISO3Code = "KAZ";
private static readonly string[] ExpectedCallingCode = ["+7"];
private static readonly (string Name, string IsoCode, string Type)[] ExpectedStates =
[
("Akmola", "KZ-AKM", "Region"),
("Aktobe", "KZ-AKT", "Region"),
("Almaty", "KZ-ALM", "Region"),
("Atyrau", "KZ-ATY", "Region"),
("East Kazakhstan", "KZ-VOS", "Region"),
("Jambyl", "KZ-ZHA", "Region"),
("Karaganda", "KZ-KAR", "Region"),
("Kostanay", "KZ-KUS", "Region"),
("Kyzylorda", "KZ-KZY", "Region"),
("Mangystau", "KZ-MAN", "Region"),
("Pavlodar", "KZ-PAV", "Region"),
("North Kazakhstan", "KZ-SEV", "Region"),
("Turkistan", "KZ-TUR", "Region"),
("West Kazakhstan", "KZ-ZAP", "Region"),
("Nur-Sultan", "KZ-NUR", "City"),
("Almaty City", "KZ-ALA", "City"),
("Shymkent", "KZ-SHY", "City")
("Abai", "KZ-10", "Region"),
("Akmola", "KZ-11", "Region"),
("Aktobe", "KZ-15", "Region"),
("Almaty", "KZ-19", "Region"),
("Atyrau", "KZ-23", "Region"),
("East Kazakhstan", "KZ-63", "Region"),
("Jambyl", "KZ-31", "Region"),
("Jetisu", "KZ-33", "Region"),
("Karaganda", "KZ-35", "Region"),
("Kostanay", "KZ-39", "Region"),
("Kyzylorda", "KZ-43", "Region"),
("Mangystau", "KZ-47", "Region"),
("Pavlodar", "KZ-55", "Region"),
("North Kazakhstan", "KZ-59", "Region"),
("Turkistan", "KZ-61", "Region"),
("Ulytau", "KZ-62", "Region"),
("West Kazakhstan", "KZ-27", "Region"),
("Astana", "KZ-71", "City"),
("Almaty City", "KZ-75", "City"),
("Shymkent", "KZ-79", "City")
];

[Fact]
Expand Down
22 changes: 11 additions & 11 deletions src/World.Net.UnitTests/Countries/NorwayTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ public sealed class NorwayTest : AssertCountryTestBase

private static readonly (string Name, string IsoCode, string Type)[] EXPECTED_STATES =
[
new("Agder", "NO-01", "County"),
new("Innlandet", "NO-02", "County"),
new("Møre og Romsdal", "NO-03", "County"),
new("Nordland", "NO-04", "County"),
new("Oslo", "NO-05", "County"),
new("Rogaland", "NO-06", "County"),
new("Troms og Finnmark", "NO-07", "County"),
new("Trøndelag", "NO-08", "County"),
new("Vestfold og Telemark", "NO-09", "County"),
new("Vestland", "NO-10", "County"),
new("Viken", "NO-11", "County")
new("Agder", "NO-42", "County"),
new("Innlandet", "NO-34", "County"),
new("Møre og Romsdal", "NO-15", "County"),
new("Nordland", "NO-18", "County"),
new("Oslo", "NO-03", "County"),
new("Rogaland", "NO-11", "County"),
new("Troms og Finnmark", "NO-54", "County"),
new("Trøndelag", "NO-50", "County"),
new("Vestfold og Telemark", "NO-38", "County"),
new("Vestland", "NO-46", "County"),
new("Viken", "NO-30", "County")
];

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net/Countries/EquatorialGuinea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal sealed class EquatorialGuinea : ICountry

public string NativeName => "República de Guinea Ecuatorial";

public string Capital => "Malabo";
public string Capital => "Ciudad de la Paz";

public int NumericCode => 226;

Expand Down
1 change: 1 addition & 0 deletions src/World.Net/Countries/Ethiopia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal sealed class Ethiopia : ICountry
new("Oromia", "OR", "Region"),
new("Sidama", "SI", "Region"),
new("Somali", "SO", "Region"),
new("South West Ethiopia Peoples' Region", "SW", "Region"),
new("Southern Nations, Nationalities, and Peoples' Region", "SN", "Region"),
new("Tigray", "TI", "Region")
];
Expand Down
39 changes: 21 additions & 18 deletions src/World.Net/Countries/Kazakhstan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal sealed class Kazakhstan : ICountry
public string OfficialName { get; } = "Republic of Kazakhstan";

///<inheritdoc/>
public string NativeName { get; } = "?????????";
public string NativeName { get; } = "Қазақстан";

///<inheritdoc/>
public string Capital { get; } = "Astana";
Expand All @@ -32,22 +32,25 @@ internal sealed class Kazakhstan : ICountry
///<inheritdoc/>
public IEnumerable<State> States { get; } =
[
new("Akmola", "KZ-AKM", "Region"),
new("Aktobe", "KZ-AKT", "Region"),
new("Almaty", "KZ-ALM", "Region"),
new("Atyrau", "KZ-ATY", "Region"),
new("East Kazakhstan", "KZ-VOS", "Region"),
new("Jambyl", "KZ-ZHA", "Region"),
new("Karaganda", "KZ-KAR", "Region"),
new("Kostanay", "KZ-KUS", "Region"),
new("Kyzylorda", "KZ-KZY", "Region"),
new("Mangystau", "KZ-MAN", "Region"),
new("Pavlodar", "KZ-PAV", "Region"),
new("North Kazakhstan", "KZ-SEV", "Region"),
new("Turkistan", "KZ-TUR", "Region"),
new("West Kazakhstan", "KZ-ZAP", "Region"),
new("Nur-Sultan", "KZ-NUR", "City"),
new("Almaty City", "KZ-ALA", "City"),
new("Shymkent", "KZ-SHY", "City")
new("Abai", "KZ-10", "Region"),
new("Akmola", "KZ-11", "Region"),
new("Aktobe", "KZ-15", "Region"),
new("Almaty", "KZ-19", "Region"),
new("Atyrau", "KZ-23", "Region"),
new("East Kazakhstan", "KZ-63", "Region"),
new("Jambyl", "KZ-31", "Region"),
new("Jetisu", "KZ-33", "Region"),
new("Karaganda", "KZ-35", "Region"),
new("Kostanay", "KZ-39", "Region"),
new("Kyzylorda", "KZ-43", "Region"),
new("Mangystau", "KZ-47", "Region"),
new("Pavlodar", "KZ-55", "Region"),
new("North Kazakhstan", "KZ-59", "Region"),
new("Turkistan", "KZ-61", "Region"),
new("Ulytau", "KZ-62", "Region"),
new("West Kazakhstan", "KZ-27", "Region"),
new("Astana", "KZ-71", "City"),
new("Almaty City", "KZ-75", "City"),
new("Shymkent", "KZ-79", "City")
];
}
22 changes: 11 additions & 11 deletions src/World.Net/Countries/Norway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ internal sealed class Norway : ICountry
//<inheritdoc/>
public IEnumerable<State> States =>
[
new("Agder", "NO-01", "County"),
new("Innlandet", "NO-02", "County"),
new("Møre og Romsdal", "NO-03", "County"),
new("Nordland", "NO-04", "County"),
new("Oslo", "NO-05", "County"),
new("Rogaland", "NO-06", "County"),
new("Troms og Finnmark", "NO-07", "County"),
new("Trøndelag", "NO-08", "County"),
new("Vestfold og Telemark", "NO-09", "County"),
new("Vestland", "NO-10", "County"),
new("Viken", "NO-11", "County")
new("Agder", "NO-42", "County"),
new("Innlandet", "NO-34", "County"),
new("Møre og Romsdal", "NO-15", "County"),
new("Nordland", "NO-18", "County"),
new("Oslo", "NO-03", "County"),
new("Rogaland", "NO-11", "County"),
new("Troms og Finnmark", "NO-54", "County"),
new("Trøndelag", "NO-50", "County"),
new("Vestfold og Telemark", "NO-38", "County"),
new("Vestland", "NO-46", "County"),
new("Viken", "NO-30", "County")
];
}

Loading