public ContentInsertDbCommand(ContentDbContext dbContext, IUtcDateTimeProvider dateTimeProvider, IPublishingIdService publishingIdService, ZippedSignedContentFormatter signedFormatter) { _DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _PublishingIdService = publishingIdService ?? throw new ArgumentNullException(nameof(publishingIdService)); _SignedFormatter = signedFormatter ?? throw new ArgumentNullException(nameof(signedFormatter)); }
public StandardContentEntityFormatter(ZippedSignedContentFormatter signedFormatter, IPublishingIdService publishingIdService, IJsonSerializer jsonSerializer) { _signedFormatter = signedFormatter ?? throw new ArgumentNullException(nameof(signedFormatter)); _publishingIdService = publishingIdService ?? throw new ArgumentNullException(nameof(publishingIdService)); _jsonSerializer = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer)); }