public void WhenDeleteCommandCalled_With_NegativeIssueId_ShouldRequireValidId() { var command = new DeleteIssueTicketCommand { Id = -1 }; FluentActions.Invoking(() => SendAsync(command)).Should().Throw <IndexOutOfRangeException>(); }
public void WhenDeleteIssueCommand_Called_ShouldRequireValidIssueId() { var command = new DeleteIssueTicketCommand { Id = 99 }; FluentActions.Invoking(() => SendAsync(command)).Should().Throw <NotFoundException>(); }