Skip to content

Commit

Permalink
Fix the event source tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach committed Feb 14, 2022
1 parent 19cf8fc commit 2727715
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -88,7 +88,7 @@ public void SendMessageExceptionLogsEvents()

mockTransportSender.Setup(
sender => sender.SendAsync(
It.IsAny<List<ServiceBusMessage>>(),
It.IsAny<IReadOnlyCollection<ServiceBusMessage>>(),
It.IsAny<CancellationToken>()))
.Throws(new Exception());

Expand Down Expand Up @@ -177,7 +177,7 @@ public async Task ScheduleMessageLogsEvents()
};
mockTransportSender.Setup(
sender => sender.ScheduleMessagesAsync(
It.IsAny<List<ServiceBusMessage>>(),
It.IsAny<IReadOnlyCollection<ServiceBusMessage>>(),
It.IsAny<CancellationToken>()))
.Returns(Task.FromResult((IReadOnlyList<long>) new List<long> { 1 }));

Expand Down Expand Up @@ -214,7 +214,7 @@ public void ScheduleMessageExceptionLogsEvents()

mockTransportSender.Setup(
sender => sender.ScheduleMessagesAsync(
It.IsAny<List<ServiceBusMessage>>(),
It.IsAny<IReadOnlyCollection<ServiceBusMessage>>(),
It.IsAny<CancellationToken>()))
.Throws(new Exception());

Expand Down

0 comments on commit 2727715

Please sign in to comment.