Skip to content

Commit

Permalink
fixed consumer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Anderson committed Feb 2, 2025
1 parent 32384de commit c6be1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Btms.Consumers.Tests/ClearanceRequestConsumerTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Btms.Backend.Data.InMemory;
using Btms.Business.Builders;
using Btms.Business.Pipelines.PreProcessing;
using Btms.Business.Services.Decisions;
Expand Down Expand Up @@ -92,7 +93,7 @@ public async Task WhenPreProcessingSucceeds_AndLastAuditEntryIsCreated_ThenLinkS
.Returns(Task.FromResult(new PreProcessingResult<Movement>(PreProcessingOutcome.New, movement, null)));

var consumer =
new AlvsClearanceRequestConsumer(preProcessor, mockLinkingService, matchingService, decisionService, validationService, NullLogger<AlvsClearanceRequestConsumer>.Instance, null!)
new AlvsClearanceRequestConsumer(preProcessor, mockLinkingService, matchingService, decisionService, validationService, NullLogger<AlvsClearanceRequestConsumer>.Instance, new MemoryMongoDbContext())
{
Context = new ConsumerContext
{
Expand Down
3 changes: 2 additions & 1 deletion Btms.Consumers.Tests/NotificationsConsumerTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Btms.Backend.Data.InMemory;
using Btms.Business.Pipelines.PreProcessing;
using Btms.Business.Services.Decisions;
using Btms.Business.Services.Linking;
Expand Down Expand Up @@ -77,7 +78,7 @@ public async Task WhenPreProcessingSucceeds_AndLastAuditEntryIsCreated_ThenLinkS

var consumer =
new NotificationConsumer(preProcessor, mockLinkingService, matchingService, decisionService,
validationService, NullLogger<NotificationConsumer>.Instance, null!)
validationService, NullLogger<NotificationConsumer>.Instance, new MemoryMongoDbContext())
{
Context = new ConsumerContext
{
Expand Down

0 comments on commit c6be1b0

Please sign in to comment.