Skip to content
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
8 changes: 2 additions & 6 deletions Api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@

<ItemGroup>
<ProjectReference Include="..\Client\Client.csproj" />
<ProjectReference Include="..\Database\Database.csproj" />
<ProjectReference Include="..\Model\Model.csproj" />
<ProjectReference Include="..\Resources\Resources.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="Api" />
<Using Include="Client" />
<Using Include="Database" />
<Using Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
<Using Include="Microsoft.AspNetCore.Builder" />
<Using Include="Microsoft.AspNetCore.Hosting" />
Expand All @@ -46,11 +43,9 @@
<Using Include="Newtonsoft.Json.Linq" />
<Using Include="Model" />
<Using Include="Model.Settings" />
<Using Include="Resources" />
<Using Include="Serilog" />
<Using Include="Serilog.Events" />
<Using Include="Serilog.Formatting.Compact" />
<Using Include="Shared.Database" />
<Using Include="System" />
<Using Include="System.Linq" />
<Using Include="System.Net" />
Expand All @@ -61,6 +56,7 @@
<Using Include="System.Threading.Tasks" />
<Using Include="Microsoft.Extensions.Logging.ILogger" Alias="ILogger" />
<Using Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" />
<Using Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
<Using Include="Microsoft.Extensions.Diagnostics.HealthChecks" />

</ItemGroup>
</Project>
11 changes: 0 additions & 11 deletions Api/BackgroundTask/BackgroundTaskExtensions.cs

This file was deleted.

46 changes: 0 additions & 46 deletions Api/BackgroundTask/BackgroundTaskQueue.cs

This file was deleted.

51 changes: 0 additions & 51 deletions Api/BackgroundTask/QueueHostedService.cs

This file was deleted.

16 changes: 0 additions & 16 deletions Api/Dynamics/DynamicsController.cs

This file was deleted.

22 changes: 0 additions & 22 deletions Api/Hosting/ServiceCollectionExtensions.cs

This file was deleted.

4 changes: 0 additions & 4 deletions Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
var appSettings = services.AddAppSettings(env);

services.AddCasHttpClient(env.IsProduction());
services.AddServices();
services.AddAutoMapperMappings();
services.AddCorsPolicy(builder.Configuration.GetSection("cors").Get<CorsSettings>());
services.AddSsoAuthentication(appSettings.Configuration);
services.AddSsoAuthorization();
Expand All @@ -22,8 +20,6 @@
services.AddControllers();
services.AddEndpointsApiExplorer();
services.AddSwaggerGen();
services.AddBackgroundTaskQueue();
services.AddDatabase(builder.Configuration);

var app = builder.Build();
app.MapHealthChecks();
Expand Down
24 changes: 0 additions & 24 deletions CASAdapter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{02
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{91CF816F-8FAF-4B2C-94AA-833E8313B7DA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Database", "Database\Database.csproj", "{D5464973-64D3-45D4-A227-BC9CFC3D27A2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared.Contract", "Shared.Contract\Shared.Contract.csproj", "{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared.Database", "Shared.Database\Shared.Database.csproj", "{0800A76B-9285-2E64-E78E-A33BA325C215}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Resources", "Resources\Resources.csproj", "{EE70027C-907C-43C1-A3B1-36178530E8EB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -48,22 +40,6 @@ Global
{91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91CF816F-8FAF-4B2C-94AA-833E8313B7DA}.Release|Any CPU.Build.0 = Release|Any CPU
{D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D5464973-64D3-45D4-A227-BC9CFC3D27A2}.Release|Any CPU.Build.0 = Release|Any CPU
{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{040C03AC-70DD-6D2B-998C-6D9C1FF9109E}.Release|Any CPU.Build.0 = Release|Any CPU
{0800A76B-9285-2E64-E78E-A33BA325C215}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0800A76B-9285-2E64-E78E-A33BA325C215}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0800A76B-9285-2E64-E78E-A33BA325C215}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0800A76B-9285-2E64-E78E-A33BA325C215}.Release|Any CPU.Build.0 = Release|Any CPU
{EE70027C-907C-43C1-A3B1-36178530E8EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EE70027C-907C-43C1-A3B1-36178530E8EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE70027C-907C-43C1-A3B1-36178530E8EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE70027C-907C-43C1-A3B1-36178530E8EB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 2 additions & 0 deletions Client/Client/CasService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,5 @@ public async Task<Response> GetSupplierByNameAndPostalCode(string supplierName,
}
}
}

public record Response(string Content, HttpStatusCode StatusCode);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Model;
namespace Client;

public interface ICasHttpClient
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Model;
namespace Client;

public interface ICasService
{
Expand Down
4 changes: 1 addition & 3 deletions Model/Client/DTO/Invoice.cs → Client/Dto/Invoice.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
namespace Model;

public class Invoice
public class Invoice
{
public bool IsBlockSupplier { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
namespace Model;

public class InvoiceLineDetail
public class InvoiceLineDetail
{
public int InvoiceLineNumber { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions Client/Token/TokenDelegatingHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
public class TokenDelegatingHandler(ITokenProvider tokenProvider) : DelegatingHandler
{
private readonly AsyncRetryPolicy<HttpResponseMessage> _policy = Policy
.HandleResult<HttpResponseMessage>(r => r.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden)
.RetryAsync((_, _) => tokenProvider.RefreshTokenAsync());
.HandleResult<HttpResponseMessage>(r => r.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.Forbidden)
.RetryAsync((_, _) => tokenProvider.RefreshTokenAsync());

protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
=> await _policy.ExecuteAsync(async () =>
Expand Down
19 changes: 0 additions & 19 deletions DFA - CAS Adapter.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,25 +340,6 @@
}
},
"response": []
},
{
"name": "Process Claims",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{server}}/api/Dynamics/process-claims",
"host": [
"{{server}}"
],
"path": [
"api",
"Dynamics",
"process-claims"
]
}
},
"response": []
}
],
"auth": {
Expand Down
Loading