Skip to content
47 changes: 47 additions & 0 deletions src/World.Net.UnitTests/Countries/LebanonTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
namespace World.Net.UnitTests.Countries
{
public class LebanonTest : AssertCountryTestBase
{
private CountryIdentifier Id => CountryIdentifier.Lebanon;
private string Name { get; } = "Lebanon";
private string OfficialName { get; } = "Lebanese Republic";
private string NativeName { get; } = "الجمهورية اللبنانية";
private string Capital { get; } = "Beirut";
private int NumericCode { get; } = 422;
private string ISO2Code { get; } = "LB";
private string ISO3Code { get; } = "LBN";
private string[] CallingCode { get; } = ["+961"];
private static readonly (string Name, string IsoCode, string Type)[] States =
[
new("Akkar", "LB-AK", "Governorate"),
new("Baalbek-Hermel", "LB-BH", "Governorate"),
new("Beirut", "LB-BA", "Governorate"),
new("Beqaa", "LB-BI", "Governorate"),
new("Mount Lebanon", "LB-JL", "Governorate"),
new("Nabatieh", "LB-NA", "Governorate"),
new("North Lebanon", "LB-AS", "Governorate"),
new("South Lebanon", "LB-JA", "Governorate")
];


[Fact]
public void GetCountry_ReturnsCorrectInformation_ForLebanon()
{
var country = CountryProvider.GetCountry(Id);

AssertCorrectInformation(
country,
Id,
Name,
OfficialName,
NativeName,
Capital,
NumericCode,
ISO2Code,
ISO3Code,
CallingCode,
States
);
}
}
}
49 changes: 49 additions & 0 deletions src/World.Net.UnitTests/Countries/LesothoTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
namespace World.Net.UnitTests.Countries
{
public class LesothoTest : AssertCountryTestBase
{
public static CountryIdentifier Id => CountryIdentifier.Lesotho;
public string Name { get; } = "Lesotho";
public string OfficialName { get; } = "Kingdom of Lesotho";
public string NativeName { get; } = "Muso oa Lesotho";
public string Capital { get; } = "Maseru";
public int NumericCode { get; } = 426;
public string ISO2Code { get; } = "LS";
public string ISO3Code { get; } = "LSO";
public string[] CallingCode { get; } = ["+266"];
private static readonly (string Name, string IsoCode, string Type)[] States =
[
new("Berea", "LS-D", "District"),
new("Butha-Buthe", "LS-B", "District"),
new("Leribe", "LS-C", "District"),
new("Mafeteng", "LS-E", "District"),
new("Maseru", "LS-A", "District"),
new("Mohale's Hoek", "LS-F", "District"),
new("Mokhotlong", "LS-J", "District"),
new("Qacha's Nek", "LS-H", "District"),
new("Quthing", "LS-G", "District"),
new("Thaba-Tseka", "LS-K", "District")
];


[Fact]
public void GetCountry_ReturnsCorrectInformation_ForLebanon()
{
var country = CountryProvider.GetCountry(Id);

AssertCorrectInformation(
country,
Id,
Name,
OfficialName,
NativeName,
Capital,
NumericCode,
ISO2Code,
ISO3Code,
CallingCode,
States
);
}
}
}
54 changes: 54 additions & 0 deletions src/World.Net.UnitTests/Countries/LiberiaTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
namespace World.Net.UnitTests.Countries
{
public class LiberiaTest : AssertCountryTestBase
{
public static CountryIdentifier Id => CountryIdentifier.Liberia;
public string Name { get; } = "Liberia";
public string OfficialName { get; } = "Republic of Liberia";
public string NativeName { get; } = "Republic of Liberia";
public string Capital { get; } = "Monrovia";
public int NumericCode { get; } = 430;
public string ISO2Code { get; } = "LR";
public string ISO3Code { get; } = "LBR";
public string[] CallingCode { get; } = ["+231"];
private static readonly (string Name, string IsoCode, string Type)[] States =
[
new("Bomi", "LR-BM", "County"),
new("Bong", "LR-BG", "County"),
new("Gbarpolu", "LR-GP", "County"),
new("Grand Bassa", "LR-GB", "County"),
new("Grand Cape Mount", "LR-CM", "County"),
new("Grand Gedeh", "LR-GG", "County"),
new("Grand Kru", "LR-GK", "County"),
new("Lofa", "LR-LO", "County"),
new("Margibi", "LR-MG", "County"),
new("Maryland", "LR-MY", "County"),
new("Montserrado", "LR-MO", "County"),
new("Nimba", "LR-NI", "County"),
new("River Cess", "LR-RI", "County"),
new("River Gee", "LR-RG", "County"),
new("Sinoe", "LR-SI", "County")
];


[Fact]
public void GetCountry_ReturnsCorrectInformation_ForLebanon()
{
var country = CountryProvider.GetCountry(Id);

AssertCorrectInformation(
country,
Id,
Name,
OfficialName,
NativeName,
Capital,
NumericCode,
ISO2Code,
ISO3Code,
CallingCode,
States
);
}
}
}
46 changes: 46 additions & 0 deletions src/World.Net/Countries/Lebanon.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
namespace World.Net.Countries
{
internal sealed class Lebanon : ICountry
{
//<inheritdoc/>
public CountryIdentifier Id => CountryIdentifier.Lebanon;

//<inheritdoc/>
public string Name { get; } = "Lebanon";

//<inheritdoc/>
public string OfficialName { get; } = "Lebanese Republic";

//<inheritdoc/>
public string NativeName { get; } = "الجمهورية اللبنانية";

//<inheritdoc/>
public string Capital { get; } = "Beirut";

//<inheritdoc/>
public int NumericCode { get; } = 422;

//<inheritdoc/>
public string ISO2Code { get; } = "LB";

//<inheritdoc/>
public string ISO3Code { get; } = "LBN";

//<inheritdoc/>
public string[] CallingCode { get; } = ["+961"];

//<inheritdoc/>
public IEnumerable<State> States { get; } =
[
new("Akkar", "LB-AK", "Governorate"),
new("Baalbek-Hermel", "LB-BH", "Governorate"),
new("Beirut", "LB-BA", "Governorate"),
new("Beqaa", "LB-BI", "Governorate"),
new("Mount Lebanon", "LB-JL", "Governorate"),
new("Nabatieh", "LB-NA", "Governorate"),
new("North Lebanon", "LB-AS", "Governorate"),
new("South Lebanon", "LB-JA", "Governorate")
];
}

}
47 changes: 47 additions & 0 deletions src/World.Net/Countries/Lesotho.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
namespace World.Net.Countries
{
internal sealed class Lesotho : ICountry
{
//<inheritdoc/>
public CountryIdentifier Id => CountryIdentifier.Lesotho;

//<inheritdoc/>
public string Name { get; } = "Lesotho";

//<inheritdoc/>
public string OfficialName { get; } = "Kingdom of Lesotho";

//<inheritdoc/>
public string NativeName { get; } = "Muso oa Lesotho";

//<inheritdoc/>
public string Capital { get; } = "Maseru";

//<inheritdoc/>
public int NumericCode { get; } = 426;

//<inheritdoc/>
public string ISO2Code { get; } = "LS";

//<inheritdoc/>
public string ISO3Code { get; } = "LSO";

//<inheritdoc/>
public string[] CallingCode { get; } = ["+266"];

//<inheritdoc/>
public IEnumerable<State> States { get; } =
[
new("Berea", "LS-D", "District"),
new("Butha-Buthe", "LS-B", "District"),
new("Leribe", "LS-C", "District"),
new("Mafeteng", "LS-E", "District"),
new("Maseru", "LS-A", "District"),
new("Mohale's Hoek", "LS-F", "District"),
new("Mokhotlong", "LS-J", "District"),
new("Qacha's Nek", "LS-H", "District"),
new("Quthing", "LS-G", "District"),
new("Thaba-Tseka", "LS-K", "District")
];
}
}
58 changes: 58 additions & 0 deletions src/World.Net/Countries/Liberia.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace World.Net.Countries
{
internal sealed class Liberia : ICountry
{

//<inheritdoc/>
public CountryIdentifier Id => CountryIdentifier.Liberia;

//<inheritdoc/>
public string Name { get; } = "Liberia";

//<inheritdoc/>
public string OfficialName { get; } = "Republic of Liberia";

//<inheritdoc/>
public string NativeName { get; } = "Republic of Liberia";

//<inheritdoc/>
public string Capital { get; } = "Monrovia";

//<inheritdoc/>
public int NumericCode { get; } = 430;

//<inheritdoc/>
public string ISO2Code { get; } = "LR";

//<inheritdoc/>
public string ISO3Code { get; } = "LBR";

//<inheritdoc/>
public string[] CallingCode { get; } = ["+231"];

//<inheritdoc/>
public IEnumerable<State> States { get; } =
[
new("Bomi", "LR-BM", "County"),
new("Bong", "LR-BG", "County"),
new("Gbarpolu", "LR-GP", "County"),
new("Grand Bassa", "LR-GB", "County"),
new("Grand Cape Mount", "LR-CM", "County"),
new("Grand Gedeh", "LR-GG", "County"),
new("Grand Kru", "LR-GK", "County"),
new("Lofa", "LR-LO", "County"),
new("Margibi", "LR-MG", "County"),
new("Maryland", "LR-MY", "County"),
new("Montserrado", "LR-MO", "County"),
new("Nimba", "LR-NI", "County"),
new("River Cess", "LR-RI", "County"),
new("River Gee", "LR-RG", "County"),
new("Sinoe", "LR-SI", "County")
];
}

}
57 changes: 57 additions & 0 deletions src/World.Net/Countries/Libya.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
namespace World.Net.Countries
{
internal sealed class Libya : ICountry
{

//<inheritdoc/>
public CountryIdentifier Id => CountryIdentifier.Libya;

//<inheritdoc/>
public string Name { get; } = "Libya";

//<inheritdoc/>
public string OfficialName { get; } = "State of Libya";

//<inheritdoc/>
public string NativeName { get; } = "دولة ليبيا";

//<inheritdoc/>
public string Capital { get; } = "Tripoli";

//<inheritdoc/>
public int NumericCode { get; } = 434;

//<inheritdoc/>
public string ISO2Code { get; } = "LY";

//<inheritdoc/>
public string ISO3Code { get; } = "LBY";

//<inheritdoc/>
public string[] CallingCode { get; } = ["+218"];

//<inheritdoc/>
public IEnumerable<State> States { get; } =
[
new("Al Butnan", "LY-BU", "District"),
new("Al Jabal al Akhdar", "LY-JA", "District"),
new("Al Jabal al Gharbi", "LY-JG", "District"),
new("Al Jafara", "LY-JI", "District"),
new("Al Jufra", "LY-JU", "District"),
new("Al Kufra", "LY-KF", "District"),
new("Al Marj", "LY-MJ", "District"),
new("Al Marqab", "LY-MB", "District"),
new("Al Wahat", "LY-WA", "District"),
new("Nalut", "LY-NL", "District"),
new("Misrata", "LY-MI", "District"),
new("Murzuq", "LY-MQ", "District"),
new("Sabha", "LY-SB", "District"),
new("Sirt", "LY-SR", "District"),
new("Tripoli", "LY-TB", "District"),
new("Wadi al Hayat", "LY-WD", "District"),
new("Wadi ash Shati'", "LY-WS", "District"),
new("Zawiya", "LY-ZA", "District")
];
}

}
Loading