Skip to content

Commit 2b074ab

Browse files
committed
nuget package upgrade and fixes
1 parent 0d3b324 commit 2b074ab

32 files changed

+118
-293
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,5 @@ ModelManifest.xml
233233

234234
.DS_Store
235235

236-
**/.angular/cache
236+
**/.angular/cache
237+
**/.idea

.idea/.idea.AspNetCoreSpa/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/.idea.AspNetCoreSpa/.idea/encodings.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/.idea.AspNetCoreSpa/.idea/indexLayout.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/.idea.AspNetCoreSpa/.idea/projectSettingsUpdater.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/.idea.AspNetCoreSpa/.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/.idea.AspNetCoreSpa/.idea/workspace.xml

Lines changed: 0 additions & 137 deletions
This file was deleted.

src/Core/Application/Application.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
1111
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="5.0.0" />
1212
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
13-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.2" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.11" />
1414
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
1515
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0" />
1616
<PackageReference Include="AutoMapper" Version="10.1.1" />
17-
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.0" />
18-
<PackageReference Include="FluentValidation" Version="9.4.0" />
19-
<PackageReference Include="FluentValidation.AspNetCore" Version="9.4.0" />
17+
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
18+
<PackageReference Include="FluentValidation" Version="10.3.4" />
19+
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.4" />
2020
<PackageReference Include="MediatR" Version="9.0.0" />
2121
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
2222
</ItemGroup>

src/Core/Application/Features/Customers/Commands/UpdateCustomer/UpdateCustomerCommandValidator.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using FluentValidation;
2-
using FluentValidation.Validators;
32

43
namespace AspNetCoreSpa.Application.Features.Customers.Commands.UpdateCustomer
54
{
@@ -24,12 +23,12 @@ public UpdateCustomerCommandValidator()
2423
.WithMessage("Australian Postcodes have 4 digits");
2524

2625
RuleFor(c => c.Phone)
27-
.Must(HaveQueenslandLandLine)
26+
.Must((model, phone) => HaveQueenslandLandLine(model, phone))
2827
.When(c => c.Country == "Australia" && c.PostalCode.StartsWith("4"))
2928
.WithMessage("Customers in QLD require at least one QLD landline.");
3029
}
3130

32-
private static bool HaveQueenslandLandLine(UpdateCustomerCommand model, string phoneValue, PropertyValidatorContext ctx)
31+
private static bool HaveQueenslandLandLine(UpdateCustomerCommand model, string phoneValue)
3332
{
3433
return model.Phone.StartsWith("07") || model.Fax.StartsWith("07");
3534
}

src/Core/Application/Features/Employees/Commands/DeleteEmployee/DeleteEmployeeCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public async Task<Unit> Handle(DeleteEmployeeCommand request, CancellationToken
4040
throw new BadRequestException("Employees cannot delete their own account.");
4141
}
4242

43-
if (entity.UserId != null)
43+
if (entity.UserId != default)
4444
{
4545
await _userManager.DeleteUserAsync(entity.UserId);
4646
}

0 commit comments

Comments
 (0)