Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get EntityUpdater logic from lbh-core package #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ContactDetailsApi.Tests/ContactDetailsApi.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.51.0" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.80.0" />
<PackageReference Include="Hackney.Core.Sns" Version="1.52.0" />
<PackageReference Include="Hackney.Core.Testing.DynamoDb" Version="1.57.0" />
<PackageReference Include="Hackney.Core.Testing.Shared" Version="1.54.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using ContactDetailsApi.V2.Domain;
using ContactDetailsApi.V2.Gateways;
using ContactDetailsApi.V2.Infrastructure;
using ContactDetailsApi.V2.Infrastructure.Interfaces;
using FluentAssertions;
using Hackney.Core.DynamoDb.EntityUpdater;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;
using Hackney.Core.Testing.DynamoDb;
using Hackney.Core.Testing.Shared;
using Microsoft.Extensions.Logging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using ContactDetailsApi.V2.Factories;
using ContactDetailsApi.V1.Domain.Sns;
using ContactDetailsApi.V2.Domain;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace ContactDetailsApi.Tests.V2.UseCase
{
Expand Down
4 changes: 2 additions & 2 deletions ContactDetailsApi/ContactDetailsApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<PackageReference Include="AWSXRayRecorder.Handlers.AspNetCore" Version="2.7.2" />
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.8.2" />
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.3" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.51.0" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.80.0" />
<PackageReference Include="Hackney.Core.HealthCheck" Version="1.49.0" />
<PackageReference Include="Hackney.Core.Http" Version="1.49.0" />
<PackageReference Include="Hackney.Core.JWT" Version="1.49.0" />
<PackageReference Include="Hackney.Core.Logging" Version="1.49.0" />
<PackageReference Include="Hackney.Core.Middleware" Version="1.49.0" />
<PackageReference Include="Hackney.Core.Middleware" Version="1.80.0" />
<PackageReference Include="Hackney.Core.Sns" Version="1.52.0" />
<PackageReference Include="Hackney.Core.Validation" Version="1.56.0" />
<PackageReference Include="Hackney.Core.Validation.AspNet" Version="1.53.0" />
Expand Down
10 changes: 2 additions & 8 deletions ContactDetailsApi/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
using Amazon.XRay.Recorder.Handlers.AwsSdk;
using ContactDetailsApi.V1.Boundary.Request.Validation;
using ContactDetailsApi.V1.Factories.Interfaces;
using ContactDetailsApi.V1.Gateways.Interfaces;
using ContactDetailsApi.V1.Infrastructure;
using ContactDetailsApi.V1.UseCase;
using ContactDetailsApi.V1.UseCase.Interfaces;
using ContactDetailsApi.V2.Factories.Interfaces;
using ContactDetailsApi.V2.Gateways.Interfaces;
using ContactDetailsApi.V2.Infrastructure;
using ContactDetailsApi.V2.Infrastructure.Interfaces;
using ContactDetailsApi.V2.UseCase.Interfaces;
using ContactDetailsApi.Versioning;
using FluentValidation.AspNetCore;
using Hackney.Core.DynamoDb;
using Hackney.Core.DynamoDb.EntityUpdater;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;
using Hackney.Core.DynamoDb.HealthCheck;
using Hackney.Core.HealthCheck;
using Hackney.Core.Http;
Expand Down Expand Up @@ -149,7 +144,6 @@ public void ConfigureServices(IServiceCollection services)

services.AddScoped<IEntityUpdater, EntityUpdater>();


ConfigureHackneyCoreDI(services);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
using ContactDetailsApi.V2.Factories;
using ContactDetailsApi.V2.Gateways.Interfaces;
using ContactDetailsApi.V2.Infrastructure;
using ContactDetailsApi.V2.Infrastructure.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;
using Hackney.Core.Logging;
using Microsoft.Extensions.Logging;
using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using ContactDetailsApi.V2.Boundary.Request;
using ContactDetailsApi.V2.Domain;
using ContactDetailsApi.V2.Infrastructure;
using ContactDetailsApi.V2.UseCase;
using System;
using Hackney.Core.DynamoDb.EntityUpdater;
using System.Collections.Generic;
using System.Threading.Tasks;

Expand Down
45 changes: 0 additions & 45 deletions ContactDetailsApi/V2/Infrastructure/BodyRewind.cs

This file was deleted.

147 changes: 0 additions & 147 deletions ContactDetailsApi/V2/Infrastructure/EntityUpdater.cs

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions ContactDetailsApi/V2/Infrastructure/UpdateEntityResult.cs

This file was deleted.