Skip to content
2 changes: 1 addition & 1 deletion src/World.Net.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

try
{
var afghanistan = CountryProvider.GetCountry(CountryIdentifier.AfghanistanId);
var afghanistan = CountryProvider.GetCountry(CountryIdentifier.Afghanistan);
Console.WriteLine($"Official Name: {afghanistan.OfficialName}");
Console.WriteLine($"Capital: {afghanistan.Capital}");
}
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AlandIslandsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class AlandIslandsTest
public void GetCountry_ReturnsCorrectInformation_ForAlandIslands()
{
// Arrange
int existingCountryId = CountryIdentifier.AlandIslands;
CountryIdentifier existingCountryId = CountryIdentifier.AlandIslands;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AlbaniaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AlbaniaTests
public void Albania_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Albania;
CountryIdentifier existingCountryId = CountryIdentifier.Albania;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AlgeriaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AlgeriaTest
public void Algeria_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Algeria;
CountryIdentifier existingCountryId = CountryIdentifier.Algeria;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AmericanSamoaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class AmericanSamoaTest
public void AmericanSamoa_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.AmericanSamoa;
CountryIdentifier existingCountryId = CountryIdentifier.AmericanSamoa;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AndorraTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AndorraTest
public void Andorra_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Andorra;
CountryIdentifier existingCountryId = CountryIdentifier.Andorra;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AngolaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AngolaTest
public void GetCountry_ReturnsCorrectInformation_ForAngola()
{
// Arrange
int existingCountryId = CountryIdentifier.Angola;
CountryIdentifier existingCountryId = CountryIdentifier.Angola;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AnguillaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AnguillaTest
public void GetCountry_ReturnsCorrectInformation_ForAnguilla()
{
// Arrange
int existingCountryId = CountryIdentifier.Anguilla;
CountryIdentifier existingCountryId = CountryIdentifier.Anguilla;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AntarticaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class AntarticaTest
public void GetCountry_ReturnsCorrectInformation_ForAntarctica()
{
// Arrange
int existingCountryId = CountryIdentifier.Antarctica;
CountryIdentifier existingCountryId = CountryIdentifier.Antarctica;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AntiguaAndBarbudaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AntiguaAndBarbudaTest
public void ANTIGUA_AND_BERBUDA_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.AntiguaAndBarbuda;
CountryIdentifier existingCountryId = CountryIdentifier.AntiguaAndBarbuda;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/ArgentinaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class ArgentinaTest
public void ARGENTINA_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Argentina;
CountryIdentifier existingCountryId = CountryIdentifier.Argentina;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/ArmeniaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class ArmeniaTest
public void ARMENIA_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Armenia;
CountryIdentifier existingCountryId = CountryIdentifier.Armenia;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/ArubaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class ArubaTest
public void Aruba_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Aruba;
CountryIdentifier existingCountryId = CountryIdentifier.Aruba;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AustraliaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AustraliaTest
public void Australia_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Australia;
CountryIdentifier existingCountryId = CountryIdentifier.Australia;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AustriaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AustriaTest
public void Austria_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Austria;
CountryIdentifier existingCountryId = CountryIdentifier.Austria;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/AzerbaijanTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class AzerbaijanTest
public void GetCountry_ReturnsCorrectInformation_ForAzerbaijan()
{
// Arrange
int existingCountryId = CountryIdentifier.Azerbaijan;
CountryIdentifier existingCountryId = CountryIdentifier.Azerbaijan;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BahrainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BahrainTest
public void GetCountry_ReturnsCorrectInformation_ForBahrain()
{
// Arrange
int existingCountryId = CountryIdentifier.Bahrain;
CountryIdentifier existingCountryId = CountryIdentifier.Bahrain;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BangladeshTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BangladeshTest
public void Bangladesh_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Bangladesh;
CountryIdentifier existingCountryId = CountryIdentifier.Bangladesh;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BarbadosTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BarbadosTest
public void Barbados_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Barbados;
CountryIdentifier existingCountryId = CountryIdentifier.Barbados;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BelarusTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BelarusTest
public void Belarus_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Belarus;
CountryIdentifier existingCountryId = CountryIdentifier.Belarus;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BelgiumTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public sealed class BelgiumTest
public void BelgiumTest_HasExpectedInformation()
{
// Arrange
int belgiumCountryId = CountryIdentifier.Belgium;
CountryIdentifier belgiumCountryId = CountryIdentifier.Belgium;

// Act
var country = CountryProvider.GetCountry(belgiumCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BelizeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BelizeTest
public void BelizeTest_HasExpectedInformation()
{
// Arrange
int belizeCountryId = CountryIdentifier.Belize;
CountryIdentifier belizeCountryId = CountryIdentifier.Belize;

// Act
var country = CountryProvider.GetCountry(belizeCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BeninTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BeninTest
public void BeninTest_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Benin;
CountryIdentifier existingCountryId = CountryIdentifier.Benin;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BermudaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class BermudaTest
public void GetCountry_ReturnsCorrectInformation_ForBermuda()
{
// Arrange
int existingCountryId = CountryIdentifier.Bermuda;
CountryIdentifier existingCountryId = CountryIdentifier.Bermuda;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BhutanTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class BhutanTest
public void GetCountry_ReturnsCorrectInformation_ForBhutan()
{
// Arrange
int existingCountryId = CountryIdentifier.Bhutan;
CountryIdentifier existingCountryId = CountryIdentifier.Bhutan;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BoliviaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class BoliviaTest
public void GetCountry_ReturnsCorrectInformation_ForBolivia()
{
// Arrange
int existingCountryId = CountryIdentifier.Bolivia;
CountryIdentifier existingCountryId = CountryIdentifier.Bolivia;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BosniaAndHerzegovinaTest
public void Bosnia_And_Herzegovina_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.BosniaAndHerzegovina;
CountryIdentifier existingCountryId = CountryIdentifier.BosniaAndHerzegovina;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BotswanaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BotswanaTest
public void Botswana_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.Botswana;
CountryIdentifier existingCountryId = CountryIdentifier.Botswana;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BouvetIslandTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BouvetIslandTest
public void BouvetIsland_HasExpectedInformation()
{
// Arrange
int existingCountryId = CountryIdentifier.BouvetIsland;
CountryIdentifier existingCountryId = CountryIdentifier.BouvetIsland;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BrazilTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BrazilTest
public void GetCountry_ReturnsCorrectInformation_for_Brazil()
{
// Arrange
int existingCountryId = CountryIdentifier.Brazil;
CountryIdentifier existingCountryId = CountryIdentifier.Brazil;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class BritishIndianOceanTerritoryTest
public void GetCountry_ReturnsCorrectInformation_for_BritishIndianOceanTerritory()
{
// Arrange
int existingCountryId = CountryIdentifier.BritishIndianOceanTerritory;
CountryIdentifier existingCountryId = CountryIdentifier.BritishIndianOceanTerritory;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BruneiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BruneiTest
public void GetCountry_ReturnsCorrectInformation_for_Brunei()
{
// Arrange
int existingCountryId = CountryIdentifier.Brunei;
CountryIdentifier existingCountryId = CountryIdentifier.Brunei;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BulgariaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BulgariaTest
public void GetCountry_ReturnsCorrectInformation_for_Bulgaria()
{
// Arrange
int existingCountryId = CountryIdentifier.Bulgaria;
CountryIdentifier existingCountryId = CountryIdentifier.Bulgaria;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BurkinaFasoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class BurkinaFasoTest
public void GetCountry_ReturnsCorrectInformation_for_BurkinaFaso()
{
// Arrange
int existingCountryId = CountryIdentifier.BurkinaFaso;
CountryIdentifier existingCountryId = CountryIdentifier.BurkinaFaso;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/BurundiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class BurundiTest
public void GetCountry_ReturnsCorrectInformation_ForBurundi()
{
// Arrange
int existingCountryId = CountryIdentifier.Burundi;
CountryIdentifier existingCountryId = CountryIdentifier.Burundi;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/CambodiaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class CambodiaTest
public void GetCountry_ReturnsCorrectInformation_ForCambodia()
{
// Arrange
int existingCountryId = CountryIdentifier.Cambodia;
CountryIdentifier existingCountryId = CountryIdentifier.Cambodia;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/CameroonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class CameroonTest
public void GetCountry_ReturnsCorrectInformation_ForCameroon()
{
// Arrange
int existingCountryId = CountryIdentifier.Cameroon;
CountryIdentifier existingCountryId = CountryIdentifier.Cameroon;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/CanadaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class CanadaTest
public void GetCountry_ReturnsCorrectInformation_ForCanada()
{
// Arrange
int existingCountryId = CountryIdentifier.Canada;
CountryIdentifier existingCountryId = CountryIdentifier.Canada;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/CapeVerdeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class CapeVerdeTest
public void GetCountry_ReturnsCorrectInformation_ForCapeVerde()
{
// Arrange
int existingCountryId = CountryIdentifier.CapeVerde;
CountryIdentifier existingCountryId = CountryIdentifier.CapeVerde;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net.UnitTests/Countries/TheBahamasTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class TheBahamasTest
public void GetCountry_ReturnsCorrectInformation_ForTheBahamas()
{
// Arrange
int existingCountryId = CountryIdentifier.Bahamas;
CountryIdentifier existingCountryId = CountryIdentifier.Bahamas;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand Down
4 changes: 2 additions & 2 deletions src/World.Net.UnitTests/CountryProviderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void GetAllCountries_ShouldReturn_NonEmptyAndNonNullCollection()
public void GetCountry_ShouldReturn_Country_WhenCountryExists()
{
// Arrange
int existingCountryId = CountryIdentifier.AfghanistanId;
CountryIdentifier existingCountryId = CountryIdentifier.Afghanistan;

// Act
var country = CountryProvider.GetCountry(existingCountryId);
Expand All @@ -51,7 +51,7 @@ public void GetCountry_ShouldReturn_Country_WhenCountryExists()
public void GetCountry_ShouldThrow_CountryNotFoundException_WhenCountryDoesNotExist()
{
// Arrange
int nonExistingCountryId = -9999;
CountryIdentifier nonExistingCountryId = (CountryIdentifier)9999999;

// Act & Assert
var exception = Assert.Throws<CountryNotFoundException>(() => CountryProvider.GetCountry(nonExistingCountryId));
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net/Countries/Afghanistan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace World.Net.Countries;
internal sealed class Afghanistan : ICountry
{
///<inheritdoc/>
public int Id => CountryIdentifier.AfghanistanId;
public CountryIdentifier Id { get; } = CountryIdentifier.Afghanistan;

///<inheritdoc/>
public string Name => nameof(Afghanistan);
Expand Down
2 changes: 1 addition & 1 deletion src/World.Net/Countries/AlandIslands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
internal sealed class AlandIslands : ICountry
{
///<inheritdoc/>
public int Id { get; } = CountryIdentifier.AlandIslands;
public CountryIdentifier Id { get; } = CountryIdentifier.AlandIslands;

///<inheritdoc/>
public string Name { get; } = "Aland Islands";
Expand Down
Loading