Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit ec09746

Browse files
committed
fix: test now validates correct case
1 parent 62ee871 commit ec09746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Liquid.OnAzure.Tests/ServiceBusTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void TopicMessageHandlerWhenMethodThrowsBusinessValidationExceptionThenMe
198198
public void TopicMessageHandlerWhenMethodThrowsInvalidInputExceptionThenMessageIsDeadLettered(string body)
199199
{
200200
// ARRANGE
201-
TopicWorker.WhatToDo = _ => throw new BusinessValidationException(new List<string>());
201+
TopicWorker.WhatToDo = _ => throw new InvalidInputException(new List<string>());
202202

203203
_subscriptionClient
204204
.When(_ => _.RegisterMessageHandler(Arg.Any<Func<Message, CancellationToken, Task>>(), Arg.Any<MessageHandlerOptions>()))

0 commit comments

Comments
 (0)