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 #143

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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Hackney.Core.Authorization" Version="1.78.0" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.79.0" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.80.0" />
<PackageReference Include="Hackney.Core.Http" Version="1.70.0" />
<PackageReference Include="Hackney.Core.JWT" Version="1.72.0" />
<PackageReference Include="Hackney.Core.Sns" Version="1.52.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Collections.Generic;
using Xunit;
using AssetInformationApi.V1.Factories;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.Tests.V1.Factories
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Hackney.Shared.Asset.Factories;
using Hackney.Shared.Asset.Infrastructure;
using AssetInformationApi.V1.Infrastructure;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;

namespace AssetInformationApi.Tests.V1.Gateways
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@
using Moq;
using System;
using System.Threading.Tasks;
using Hackney.Shared.Asset.Domain;
using Hackney.Shared.Asset.Factories;
using Xunit;
using Hackney.Core.JWT;
using Hackney.Core.Http;
using Hackney.Core.Sns;
using AssetInformationApi.V1.Factories;
using Hackney.Shared.Asset.Boundary.Request;
using Hackney.Shared.Asset.Infrastructure;
using AssetInformationApi.V1.Infrastructure;
using AssetInformationApi.V1.Boundary.Request;
using System.Collections.Generic;
using Hackney.Shared.Asset.Boundary.Response;
using AssetInformationApi.V1.Gateways.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.Tests.V1.UseCase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using AssetInformationApi.V1.Infrastructure;
using AutoFixture;
using Hackney.Core.DynamoDb.EntityUpdater;
using Hackney.Shared.Asset.Infrastructure;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@
using Moq;
using System;
using System.Threading.Tasks;
using Hackney.Shared.Asset.Domain;
using Hackney.Shared.Asset.Factories;
using Xunit;
using Hackney.Core.JWT;
using Hackney.Core.Http;
using Hackney.Core.Sns;
using AssetInformationApi.V1.Factories;
using Hackney.Shared.Asset.Boundary.Request;
using Hackney.Shared.Asset.Infrastructure;
using AssetInformationApi.V1.Infrastructure;
using AssetInformationApi.V1.Boundary.Request;
using System.Collections.Generic;
using Hackney.Shared.Asset.Boundary.Response;
using AssetInformationApi.V1.Gateways.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.Tests.V1.UseCase
{
Expand Down
4 changes: 2 additions & 2 deletions AssetInformationApi/AssetInformationApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" Version="2.8.2" />
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.3" />
<PackageReference Include="Hackney.Core.Authorization" Version="1.78.0" />
<PackageReference Include="Hackney.Core.DynamoDb" Version="1.79.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.70.0" />
<PackageReference Include="Hackney.Core.JWT" Version="1.72.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
4 changes: 3 additions & 1 deletion AssetInformationApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
using AssetInformationApi.V1.Infrastructure;
using Hackney.Core.Middleware;
using AssetInformationApi.V1.Gateways.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi
{
Expand Down Expand Up @@ -155,7 +157,7 @@ public void ConfigureServices(IServiceCollection services)
RegisterGateways(services);
RegisterUseCases(services);

services.AddSingleton<IConfiguration>(Configuration);
services.AddSingleton(Configuration);
services.AddScoped<ISnsFactory, AssetSnsFactory>();
services.AddScoped<IEntityUpdater, EntityUpdater>();

Expand Down
1 change: 1 addition & 0 deletions AssetInformationApi/V1/Factories/AssetSnsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Hackney.Shared.Asset.Infrastructure;
using System;
using AssetInformationApi.V1.Infrastructure;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.V1.Factories
{
Expand Down
1 change: 1 addition & 0 deletions AssetInformationApi/V1/Factories/ISnsFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AssetInformationApi.V1.Infrastructure;
using Hackney.Core.DynamoDb.EntityUpdater;
using Hackney.Core.JWT;
using Hackney.Core.Sns;
using Hackney.Shared.Asset.Domain;
Expand Down
2 changes: 2 additions & 0 deletions AssetInformationApi/V1/Gateways/AssetGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
using AssetInformationApi.V1.Helpers;
using AssetInformationApi.V1.Factories;
using AssetInformationApi.V1.Gateways.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater.Interfaces;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.V1.Gateways
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using Hackney.Shared.Asset.Domain;
using Hackney.Shared.Asset.Infrastructure;
using System;
using AssetInformationApi.V1.Infrastructure;
using Hackney.Shared.Asset.Boundary.Request;
using Hackney.Core.DynamoDb.EntityUpdater;

namespace AssetInformationApi.V1.Gateways.Interfaces
{
Expand Down
45 changes: 0 additions & 45 deletions AssetInformationApi/V1/Infrastructure/BodyRewind.cs

This file was deleted.

131 changes: 0 additions & 131 deletions AssetInformationApi/V1/Infrastructure/EntityUpdater.cs

This file was deleted.

56 changes: 0 additions & 56 deletions AssetInformationApi/V1/Infrastructure/IEntityUpdater.cs

This file was deleted.

22 changes: 0 additions & 22 deletions AssetInformationApi/V1/Infrastructure/StringExtensions.cs

This file was deleted.

Loading