Skip to content

Commit dab25f2

Browse files
committed
fixing warnings
Signed-off-by: Neil South <[email protected]>
1 parent 0385d73 commit dab25f2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/Api/Storage/FileStorageMetadata.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ public virtual void SetFailed()
117117
File.SetFailed();
118118
}
119119

120-
public string PayloadId { get; set; }
120+
public string? PayloadId { get; set; }
121121
}
122122
}

src/Database/EntityFramework/Test/SourceApplicationEntityRepositoryTest.cs

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public async Task GivenAAETitleName_WhenFindByAETAsyncIsCalled_ExpectItToReturnM
119119
Assert.Equal("AET1", actual.FirstOrDefault()!.Name);
120120

121121
actual = await store.FindByAETAsync("AET6").ConfigureAwait(false);
122+
Assert.NotNull(actual);
122123
Assert.Empty(actual);
123124
}
124125

src/Database/MongoDB/Integration.Test/SourceApplicationEntityRepositoryTest.cs

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public async Task GivenAETitle_WhenFindByAETitleAsyncIsCalled_ExpectItToReturnMa
124124
Assert.Equal("AET1", actual.FirstOrDefault()!.Name);
125125

126126
actual = await store.FindByAETAsync("AET6").ConfigureAwait(false);
127+
Assert.NotNull(actual);
127128
Assert.Empty(actual);
128129
}
129130

tests/Integration.Test/Drivers/RabbitMqConsumer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public RabbitMqConsumer(RabbitMQMessageSubscriberService subscriberService, stri
4545
_outputHelper = outputHelper ?? throw new ArgumentNullException(nameof(outputHelper));
4646
_messages = new ConcurrentBag<Message>();
4747

48-
subscriberService.Subscribe(
48+
subscriberService.SubscribeAsync(
4949
queueName,
5050
queueName,
51-
(eventArgs) =>
51+
async (eventArgs) =>
5252
{
5353
_outputHelper.WriteLine($"Message received from queue {queueName} for {queueName}.");
5454
_messages.Add(eventArgs.Message);

0 commit comments

Comments
 (0)