Extract implementations from NucuCar.Domain in NucuCar.Common

This commit is contained in:
Denis-Cosmin Nutiu 2020-04-18 14:17:54 +03:00
parent 7996bd72a6
commit 27873e7def
9 changed files with 20 additions and 6 deletions

View file

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
</Project>

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace NucuCar.Domain.Utilities namespace NucuCar.Common.Utilities
{ {
/// <summary> /// <summary>
/// ConnectionStringParser is an utility service to parse and validate connection strings. /// ConnectionStringParser is an utility service to parse and validate connection strings.

View file

@ -1,6 +1,6 @@
using System; using System;
namespace NucuCar.Domain namespace NucuCar.Common.Utilities
{ {
/// <summary> /// <summary>
/// Helper class used for checking arguments and raise exception if the checks don't pass. /// Helper class used for checking arguments and raise exception if the checks don't pass.

View file

@ -5,6 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\NucuCar.Common\NucuCar.Common.csproj" />
<ProjectReference Include="..\NucuCar.Domain\NucuCar.Domain.csproj" /> <ProjectReference Include="..\NucuCar.Domain\NucuCar.Domain.csproj" />
</ItemGroup> </ItemGroup>

View file

@ -6,8 +6,8 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Newtonsoft.Json; using Newtonsoft.Json;
using NucuCar.Common.Utilities;
using NucuCar.Domain.Telemetry; using NucuCar.Domain.Telemetry;
using NucuCar.Domain.Utilities;
namespace NucuCar.Telemetry namespace NucuCar.Telemetry
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using NucuCar.Domain; using NucuCar.Common.Utilities;
using NucuCar.Domain.Telemetry; using NucuCar.Domain.Telemetry;
namespace NucuCar.Telemetry namespace NucuCar.Telemetry

View file

@ -8,8 +8,8 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Newtonsoft.Json; using Newtonsoft.Json;
using NucuCar.Common.Utilities;
using NucuCar.Domain.Telemetry; using NucuCar.Domain.Telemetry;
using NucuCar.Domain.Utilities;
namespace NucuCar.Telemetry namespace NucuCar.Telemetry
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using NucuCar.Domain.Utilities; using NucuCar.Common.Utilities;
using Xunit; using Xunit;
namespace NucuCar.UnitTests.NucuCar.Domain.Tests.Utilities namespace NucuCar.UnitTests.NucuCar.Domain.Tests.Utilities

View file

@ -10,6 +10,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NucuCar.UnitTests", "NucuCa
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NucuCar.Telemetry", "NucuCar.Telemetry\NucuCar.Telemetry.csproj", "{C20407F3-AB62-4590-B4FF-A0DCFCFA232B}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NucuCar.Telemetry", "NucuCar.Telemetry\NucuCar.Telemetry.csproj", "{C20407F3-AB62-4590-B4FF-A0DCFCFA232B}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NucuCar.Common", "NucuCar.Common\NucuCar.Common.csproj", "{C2C40BF1-2375-4C74-938E-652CC3C31BDD}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -36,5 +38,9 @@ Global
{C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Debug|Any CPU.Build.0 = Debug|Any CPU {C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Release|Any CPU.ActiveCfg = Release|Any CPU {C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Release|Any CPU.Build.0 = Release|Any CPU {C20407F3-AB62-4590-B4FF-A0DCFCFA232B}.Release|Any CPU.Build.0 = Release|Any CPU
{C2C40BF1-2375-4C74-938E-652CC3C31BDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2C40BF1-2375-4C74-938E-652CC3C31BDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2C40BF1-2375-4C74-938E-652CC3C31BDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2C40BF1-2375-4C74-938E-652CC3C31BDD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal