public MvcLogbookDetailsPresenter( [NotNull] IRelativeUrlGenerator relativeUrlGenerator, [NotNull] ILogbookDetailsUrlGenerator detailsUrlGenerator) { this.relativeUrlGenerator = relativeUrlGenerator ?? throw new ArgumentNullException(nameof(this.relativeUrlGenerator)); this.detailsUrlGenerator = detailsUrlGenerator ?? throw new ArgumentNullException(nameof(detailsUrlGenerator)); }
public LogbookController( [NotNull] IPhotoService photoService, [NotNull] IMediator mediator, [NotNull] ITextFormatter textFormatter, [NotNull] IRelativeUrlGenerator relativeUrlGenerator, [NotNull] ILogbookDetailsUrlGenerator logbookDetailsUrlGenerator) { this.photoService = photoService ?? throw new ArgumentNullException(nameof(photoService)); this.mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); this.textFormatter = textFormatter ?? throw new ArgumentNullException(nameof(textFormatter)); this.relativeUrlGenerator = relativeUrlGenerator ?? throw new ArgumentNullException(nameof(relativeUrlGenerator)); this.logbookDetailsUrlGenerator = logbookDetailsUrlGenerator ?? throw new ArgumentNullException(nameof(logbookDetailsUrlGenerator)); }