Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodorosKarropoulos committed Oct 16, 2021
1 parent 3c72a01 commit 89db646
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;

namespace Kapa.Culture
namespace Kapa.Country
{
public static class Countries
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using Kapa.Culture.Extensions;

namespace Kapa.Culture
namespace Kapa.Country
{
public class Country
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace Kapa.Culture
namespace Kapa.Country
{
public static class Phones
{
Expand Down
4 changes: 2 additions & 2 deletions src/Kapa.Culture.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kapa.Culture.Core", "Kapa.Culture.Core\Kapa.Culture.Core.csproj", "{3E79F22F-B245-45C5-8991-892BDE15B1AA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kapa.Country.Core", "Kapa.Country.Core\Kapa.Country.Core.csproj", "{3E79F22F-B245-45C5-8991-892BDE15B1AA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kapa.Culture.Tests", "..\tests\Kapa.Culture.Tests\Kapa.Culture.Tests.csproj", "{8E58B717-2AA3-44C0-91BE-1E67E67CF680}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kapa.Country.Tests", "..\tests\Kapa.Country.Tests\Kapa.Country.Tests.csproj", "{8E58B717-2AA3-44C0-91BE-1E67E67CF680}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Linq;
using Xunit;

namespace Kapa.Culture.Tests
namespace Kapa.Country.Tests
{
public class CountryTests
{
Expand Down Expand Up @@ -48,7 +48,6 @@ public void ShouldTrimCreateCountryFromNumericCode(string code)
Assert.True(country.ThreeLetterCode == "GRC");
Assert.True(country.TwoLetterCode == "GR");
Assert.True(country.Name != default);
Assert.NotNull(country.CurrencySymbol);
Assert.True(country.CurrencyIsoCode == "EUR");
Assert.NotNull(country.Languages);
}
Expand Down Expand Up @@ -119,15 +118,6 @@ public void ShouldGetTwoLetterCodeFromNumericCode(string numericCode)
Assert.True(twoLetterCode == country.TwoLetterCode);
}

[Fact]
public void ShouldGetPhoneNumbers()
{
var country = Country.FromCode("GR");
Assert.True(country.DialingCodes.Any());
Assert.True(country.DialingCodes.Count() == 1);
Assert.True(country.DialingCodes.All(x => x.Equals("30")));
}

[Fact]
public void AllTwoLetterCodesShouldBeValid()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>

<RootNamespace>Kapa.Culture.Tests</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand All @@ -20,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Kapa.Culture.Core\Kapa.Culture.Core.csproj" />
<ProjectReference Include="..\..\src\Kapa.Country.Core\Kapa.Country.Core.csproj" />
</ItemGroup>

</Project>

0 comments on commit 89db646

Please sign in to comment.