diff --git a/Btms.Consumers.Tests/ClearanceRequestConsumerTests.cs b/Btms.Consumers.Tests/ClearanceRequestConsumerTests.cs index b54f3239..1f6c994d 100644 --- a/Btms.Consumers.Tests/ClearanceRequestConsumerTests.cs +++ b/Btms.Consumers.Tests/ClearanceRequestConsumerTests.cs @@ -1,3 +1,4 @@ +using Btms.Backend.Data.InMemory; using Btms.Business.Builders; using Btms.Business.Pipelines.PreProcessing; using Btms.Business.Services.Decisions; @@ -92,7 +93,7 @@ public async Task WhenPreProcessingSucceeds_AndLastAuditEntryIsCreated_ThenLinkS .Returns(Task.FromResult(new PreProcessingResult(PreProcessingOutcome.New, movement, null))); var consumer = - new AlvsClearanceRequestConsumer(preProcessor, mockLinkingService, matchingService, decisionService, validationService, NullLogger.Instance, null!) + new AlvsClearanceRequestConsumer(preProcessor, mockLinkingService, matchingService, decisionService, validationService, NullLogger.Instance, new MemoryMongoDbContext()) { Context = new ConsumerContext { diff --git a/Btms.Consumers.Tests/NotificationsConsumerTests.cs b/Btms.Consumers.Tests/NotificationsConsumerTests.cs index 5a7ad1ab..1f5556f7 100644 --- a/Btms.Consumers.Tests/NotificationsConsumerTests.cs +++ b/Btms.Consumers.Tests/NotificationsConsumerTests.cs @@ -1,3 +1,4 @@ +using Btms.Backend.Data.InMemory; using Btms.Business.Pipelines.PreProcessing; using Btms.Business.Services.Decisions; using Btms.Business.Services.Linking; @@ -77,7 +78,7 @@ public async Task WhenPreProcessingSucceeds_AndLastAuditEntryIsCreated_ThenLinkS var consumer = new NotificationConsumer(preProcessor, mockLinkingService, matchingService, decisionService, - validationService, NullLogger.Instance, null!) + validationService, NullLogger.Instance, new MemoryMongoDbContext()) { Context = new ConsumerContext {