Skip to content

Commit 895a4d4

Browse files
committed
Apply some recomendations and update packages
1 parent 96fd32b commit 895a4d4

File tree

10 files changed

+25
-16
lines changed

10 files changed

+25
-16
lines changed

StoreCleanArchitecture.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Store.IntegrationTests", "t
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Store.SharedDatabaseSetup", "tests\Store.SharedDatabaseSetup\Store.SharedDatabaseSetup.csproj", "{3C31AD80-0F8C-4C04-B7B3-48CE53D7E508}"
2121
EndProject
22-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Store.FunctionalTests", "tests\Store.FunctionalTests\Store.FunctionalTests.csproj", "{959082E4-8E59-40AC-B4B1-D2BC22235DEB}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Store.FunctionalTests", "tests\Store.FunctionalTests\Store.FunctionalTests.csproj", "{959082E4-8E59-40AC-B4B1-D2BC22235DEB}"
2323
EndProject
2424
Global
2525
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/Store.ApplicationCore/Exceptions/NotFoundException.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,16 @@ namespace Store.ApplicationCore.Exceptions
44
{
55
public class NotFoundException : Exception
66
{
7+
public NotFoundException() : base()
8+
{
9+
}
10+
11+
public NotFoundException(string message) : base(message)
12+
{
13+
}
14+
15+
public NotFoundException(string message, Exception innerException) : base(message, innerException)
16+
{
17+
}
718
}
819
}

src/Store.ApplicationCore/Utils/DateUtil.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace Store.ApplicationCore.Utils
64
{
7-
public class DateUtil
5+
public static class DateUtil
86
{
97
public static DateTime GetCurrentDate()
108
{

src/Store.Infrastructure/Migrations/20211108211740_InitialCreate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System;
1+
using Microsoft.EntityFrameworkCore.Migrations;
2+
using System;
23
using System.Diagnostics.CodeAnalysis;
3-
using Microsoft.EntityFrameworkCore.Migrations;
44

55
#nullable disable
66

src/Store.Infrastructure/Store.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.8" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.9" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/Store.WebApi/Store.WebApi.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.8">
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.9">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.8">
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.9">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>

tests/Store.FunctionalTests/Store.FunctionalTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.8" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.8" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.9" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.9" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
1414
<PackageReference Include="xunit" Version="2.4.2" />
1515
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Store.IntegrationTests/SharedDatabaseFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class SharedDatabaseFixture : IDisposable
1212
private static readonly object _lock = new object();
1313
private static bool _databaseInitialized;
1414

15-
private string dbName = "IntegrationTestsDatabase.db";
15+
private readonly string dbName = "IntegrationTestsDatabase.db";
1616

1717
public SharedDatabaseFixture()
1818
{

tests/Store.IntegrationTests/Store.IntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.8" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.9" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
1313
<PackageReference Include="xunit" Version="2.4.2" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Store.UnitTests/Store.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
1212
<PackageReference Include="xunit" Version="2.4.2" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)