Skip to content

Commit

Permalink
refactor: make param nullable for optional usage
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaDmitrasinovic committed Jan 22, 2024
1 parent 2dc8e76 commit 1128bb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async void Updates_metric_statuses_after_creating_tier_quota()
).MustHaveHappened();
}

private static QuotaCreatedForTierIntegrationEventHandler CreateHandler(IIdentitiesRepository identities, ITiersRepository tierQuotaDefinitions, IMetricStatusesService metricStatusesService = null)
private static QuotaCreatedForTierIntegrationEventHandler CreateHandler(IIdentitiesRepository identities, ITiersRepository tierQuotaDefinitions, IMetricStatusesService? metricStatusesService = null)
{
var logger = A.Fake<ILogger<QuotaCreatedForTierIntegrationEventHandler>>();
return new QuotaCreatedForTierIntegrationEventHandler(identities, tierQuotaDefinitions, logger, metricStatusesService ?? A.Fake<IMetricStatusesService>());
Expand Down

0 comments on commit 1128bb1

Please sign in to comment.