Browse Source

update all nuget package use new version of Ardalis.Specifications (#668)

main
Cédric Michel 4 years ago
committed by GitHub
parent
commit
6847cdaa0c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/ApplicationCore/ApplicationCore.csproj
  2. 4
      src/Infrastructure/Infrastructure.csproj
  3. 10
      src/PublicApi/PublicApi.csproj
  4. 12
      src/Web/Web.csproj
  5. 4
      tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs
  6. 2
      tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs
  7. 4
      tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs
  8. 4
      tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs

6
src/ApplicationCore/ApplicationCore.csproj

@ -6,9 +6,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ardalis.GuardClauses" Version="3.3.0" />
<PackageReference Include="Ardalis.Specification" Version="5.2.0" />
<PackageReference Include="MediatR" Version="9.0.0" />
<PackageReference Include="Ardalis.GuardClauses" Version="4.0.0" />
<PackageReference Include="Ardalis.Specification" Version="6.0.1" />
<PackageReference Include="MediatR" Version="10.0.1" />
<PackageReference Include="System.Security.Claims" Version="4.3.0" />
<PackageReference Include="System.Text.Json" Version="6.0.1" />
</ItemGroup>

4
src/Infrastructure/Infrastructure.csproj

@ -6,11 +6,11 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ardalis.Specification.EntityFrameworkCore" Version="5.2.0" />
<PackageReference Include="Ardalis.Specification.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" />

10
src/PublicApi/PublicApi.csproj

@ -9,10 +9,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ardalis.ApiEndpoints" Version="4.0.0-pre1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
<PackageReference Include="MediatR" Version="9.0.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Ardalis.ApiEndpoints" Version="4.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="MediatR" Version="10.0.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
<PackageReference Include="MinimalApi.Endpoint" Version="1.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.2.3" />
@ -30,7 +30,7 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.1" />
</ItemGroup>
<ItemGroup>

12
src/Web/Web.csproj

@ -15,15 +15,15 @@
<ItemGroup>
<PackageReference Include="Ardalis.ListStartupServices" Version="1.1.3" />
<PackageReference Include="Ardalis.Specification" Version="5.2.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
<PackageReference Include="MediatR" Version="9.0.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Ardalis.Specification" Version="6.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="MediatR" Version="10.0.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" Condition="'$(Configuration)'=='Release'" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.1" />
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.1.113" />
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.1.161" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.1" />
@ -33,7 +33,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.1" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\fonts\" />

4
tests/UnitTests/ApplicationCore/Specifications/CatalogFilterPaginatedSpecification.cs

@ -14,7 +14,7 @@ public class CatalogFilterPaginatedSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Equal(4, result.ToList().Count);
@ -27,7 +27,7 @@ public class CatalogFilterPaginatedSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Equal(2, result.ToList().Count);

2
tests/UnitTests/ApplicationCore/Specifications/CatalogFilterSpecification.cs

@ -21,7 +21,7 @@ public class CatalogFilterSpecification
var result = GetTestItemCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.Equal(expectedCount, result.Count());
}

4
tests/UnitTests/ApplicationCore/Specifications/CatalogItemsSpecification.cs

@ -16,7 +16,7 @@ public class CatalogItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Single(result.ToList());
@ -30,7 +30,7 @@ public class CatalogItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault());
.Where(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.Equal(2, result.ToList().Count);

4
tests/UnitTests/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs

@ -17,7 +17,7 @@ public class CustomerOrdersWithItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.FirstOrDefault(spec.WhereExpressions.FirstOrDefault());
.FirstOrDefault(spec.WhereExpressions.FirstOrDefault().Filter);
Assert.NotNull(result);
Assert.NotNull(result.OrderItems);
@ -32,7 +32,7 @@ public class CustomerOrdersWithItemsSpecification
var result = GetTestCollection()
.AsQueryable()
.Where(spec.WhereExpressions.FirstOrDefault())
.Where(spec.WhereExpressions.FirstOrDefault().Filter)
.ToList();
Assert.NotNull(result);

Loading…
Cancel
Save