Skip to content
Merged
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
14 changes: 7 additions & 7 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
<PackageVersion Include="Ductus.FluentDocker" Version="2.85.0" />
<PackageVersion Include="EventStoreProjections" Version="2023.12.3" />
<PackageVersion Include="KurrentDB.Client" Version="1.6.0" />
<PackageVersion Include="KurrentDB.Client" Version="1.6.1" />
<PackageVersion Include="Lamar" Version="16.0.0" />
<PackageVersion Include="Lamar.Microsoft.DependencyInjection" Version="16.0.0" />
<PackageVersion Include="MediatR" Version="14.2.0" />
Expand All @@ -26,10 +26,10 @@
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.14" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="10.0.14" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.11.0" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.1" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.2" />
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
<PackageVersion Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="10.0.2" />
<PackageVersion Include="Imposter" Version="1.0.8" />
<PackageVersion Include="Imposter" Version="1.0.10" />
<PackageVersion Include="NLog.Extensions.Logging" Version="6.2.2" />
<PackageVersion Include="NUnit" Version="5.0.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="6.3.1" />
Expand All @@ -38,15 +38,15 @@
<PackageVersion Include="Reqnroll" Version="3.3.4" />
<PackageVersion Include="Reqnroll.NUnit" Version="3.3.4" />
<PackageVersion Include="Reqnroll.Tools.MsBuild.Generation" Version="3.3.4" />
<PackageVersion Include="SecurityService.Client" Version="2026.10.3.204" />
<PackageVersion Include="SecurityService.IntegrationTesting.Helpers" Version="2026.10.3.204" />
<PackageVersion Include="SecurityService.Client" Version="2026.10.3.207" />
<PackageVersion Include="SecurityService.IntegrationTesting.Helpers" Version="2026.10.3.207" />
<PackageVersion Include="Shared" Version="2026.11.2" />
<PackageVersion Include="Shared.IntegrationTesting" Version="2026.11.2" />
<PackageVersion Include="Shared.Results.Web" Version="2026.11.2" />
<PackageVersion Include="Shouldly" Version="4.3.0" />
<PackageVersion Include="TransactionProcessing.ApiDefaults" Version="2026.11.2" />
<PackageVersion Include="TransactionProcessor.Client" Version="2026.10.3.412" />
<PackageVersion Include="TransactionProcessor.IntegrationTesting.Helpers" Version="2026.10.3.412" />
<PackageVersion Include="TransactionProcessor.Client" Version="2026.10.3.418" />
<PackageVersion Include="TransactionProcessor.IntegrationTesting.Helpers" Version="2026.10.3.418" />
<PackageVersion Include="Sentry.AspNetCore" Version="6.12.1" />
<PackageVersion Include="xunit.v3" Version="4.0.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="4.0.1" />
Expand Down
21 changes: 3 additions & 18 deletions TransactionProcessorACL.BusinessLogic.Tests/MediatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,13 @@ private void AddTestRegistrations(ServiceRegistry services,

public class DummyTransactionProcessorACLApplicationService : ITransactionProcessorACLApplicationService
{
public async Task<Result<ProcessLogonTransactionResponse>> ProcessLogonTransaction(Guid estateId,
Guid merchantId,
DateTime transactionDateTime,
String transactionNumber,
String deviceIdentifier,
public async Task<Result<ProcessLogonTransactionResponse>> ProcessLogonTransaction(TransactionCommands.ProcessLogonTransactionCommand command,
CancellationToken cancellationToken) => Result.Success(new ProcessLogonTransactionResponse());

public async Task<Result<ProcessSaleTransactionResponse>> ProcessSaleTransaction((Guid estateId, Guid merchantId) merchantData,
DateTime transactionDateTime,
String transactionNumber,
String deviceIdentifier,
String customerEmailAddress,
(Guid operatorId, Guid contractId, Guid productId) productData,
Dictionary<String, String> additionalRequestMetadata,
public async Task<Result<ProcessSaleTransactionResponse>> ProcessSaleTransaction(TransactionCommands.ProcessSaleTransactionCommand command,
CancellationToken cancellationToken) => Result.Success(new ProcessSaleTransactionResponse());

public async Task<Result<ProcessReconciliationResponse>> ProcessReconciliation(Guid estateId,
Guid merchantId,
DateTime transactionDateTime,
String deviceIdentifier,
Int32 transactionCount,
Decimal transactionValue,
public async Task<Result<ProcessReconciliationResponse>> ProcessReconciliation(TransactionCommands.ProcessReconciliationCommand command,
CancellationToken cancellationToken) => Result.Success(new ProcessReconciliationResponse());

public async Task<Result<GetVoucherResponse>> GetVoucher(Guid estateId,
Expand Down
21 changes: 3 additions & 18 deletions TransactionProcessorACL.BusinessLogic.Tests/RequestHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ public async Task ProcessLogonTransactionRequestHandler_Handle_RequestIsHandled(
{
ITransactionProcessorACLApplicationServiceImposter applicationService = new ITransactionProcessorACLApplicationServiceImposter();
applicationService
.ProcessLogonTransaction(Arg<Guid>.Any(),
Arg<Guid>.Any(),
Arg<DateTime>.Any(),
Arg<String>.Any(),
Arg<String>.Any(),
.ProcessLogonTransaction(Arg<TransactionCommands.ProcessLogonTransactionCommand>.Any(),
Arg<CancellationToken>.Any()).ReturnsAsync(TestData.ProcessLogonTransactionResponse);
TransactionRequestHandler requestHandler = new TransactionRequestHandler(applicationService.Instance());

Expand All @@ -75,13 +71,7 @@ public async Task ProcessSaleTransactionRequestHandler_Handle_RequestIsHandled()
{
ITransactionProcessorACLApplicationServiceImposter applicationService = new ITransactionProcessorACLApplicationServiceImposter();
applicationService
.ProcessSaleTransaction(Arg<(Guid, Guid)>.Any(),
Arg<DateTime>.Any(),
Arg<String>.Any(),
Arg<String>.Any(),
Arg<String>.Any(),
Arg<(Guid, Guid, Guid)>.Any(),
Arg<Dictionary<String,String>>.Any(),
.ProcessSaleTransaction(Arg<TransactionCommands.ProcessSaleTransactionCommand>.Any(),
Arg<CancellationToken>.Any()).ReturnsAsync(TestData.ProcessSaleTransactionResponse);

TransactionRequestHandler requestHandler = new TransactionRequestHandler(applicationService.Instance());
Expand All @@ -100,12 +90,7 @@ public async Task ProcessReconciliationRequestHandler_Handle_RequestIsHandled()
{
ITransactionProcessorACLApplicationServiceImposter applicationService = new ITransactionProcessorACLApplicationServiceImposter();
applicationService
.ProcessReconciliation(Arg<Guid>.Any(),
Arg<Guid>.Any(),
Arg<DateTime>.Any(),
Arg<String>.Any(),
Arg<Int32>.Any(),
Arg<Decimal>.Any(),
.ProcessReconciliation(Arg<TransactionCommands.ProcessReconciliationCommand>.Any(),
Arg<CancellationToken>.Any()).ReturnsAsync(TestData.ProcessReconciliationResponse);
TransactionRequestHandler requestHandler = new TransactionRequestHandler(applicationService.Instance());

Expand Down
Loading
Loading