Skip to content

Commit

Permalink
style: change optional arg to nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Nov 25, 2023
1 parent 29b2d79 commit c77adc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rebus.Correlate/Steps/CorrelateOutgoingMessageStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal class CorrelateOutgoingMessageStep : IOutgoingStep
private readonly ICorrelationIdFactory _correlationIdFactory;
private readonly ILog _logger;

public CorrelateOutgoingMessageStep(ICorrelationContextAccessor correlationContextAccessor, ICorrelationIdFactory correlationIdFactory, IRebusLoggerFactory rebusLoggerFactory)
public CorrelateOutgoingMessageStep(ICorrelationContextAccessor correlationContextAccessor, ICorrelationIdFactory correlationIdFactory, IRebusLoggerFactory? rebusLoggerFactory)
{
_correlationContextAccessor = correlationContextAccessor ?? throw new ArgumentNullException(nameof(correlationContextAccessor));
_correlationIdFactory = correlationIdFactory ?? throw new ArgumentNullException(nameof(correlationIdFactory));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void When_creating_instance_without_loggerFactory_it_should_not_throw()
IRebusLoggerFactory? rebusLoggerFactory = null;

// Act
Func<CorrelateOutgoingMessageStep> act = () => new CorrelateOutgoingMessageStep(_correlationContextAccessor, _correlationIdFactoryMock.Object, rebusLoggerFactory!);
Func<CorrelateOutgoingMessageStep> act = () => new CorrelateOutgoingMessageStep(_correlationContextAccessor, _correlationIdFactoryMock.Object, rebusLoggerFactory);

// Assert
act.Should().NotThrow();
Expand Down

0 comments on commit c77adc6

Please sign in to comment.