public ContentDatabaseCreateCommand(ContentDbContext dbContextProvider, IUtcDateTimeProvider dateTimeProvider, ContentValidator validator, ContentInsertDbCommand insertDbCommand) { _DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); }
public WriteFromFile(ContentValidator validator, ContentInsertDbCommand insertDbCommand, IUtcDateTimeProvider dateTimeProvider, ContentDbContext contentDbContext) { _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); }
public ContentPublisher(PublishContentLoggingExtensions logger, IUtcDateTimeProvider dateTimeProvider, ContentValidator validator, ContentDbContext contentDbContext, ContentInsertDbCommand insertDbCommand) { _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); }
public PublishContentCommand(ContentValidator validator, ContentInsertDbCommand insertDbCommand, IUtcDateTimeProvider dateTimeProvider, ContentDbContext contentDbContext, ILogger <PublishContentCommand> logger) { _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ContentController(ContentValidator validator, ContentInsertDbCommand insertDbCommand, ContentDbContext context, IUtcDateTimeProvider dateTimeProvider) { if (validator == null) { throw new ArgumentNullException(nameof(validator)); } if (insertDbCommand == null) { throw new ArgumentNullException(nameof(insertDbCommand)); } if (context == null) { throw new ArgumentNullException(nameof(context)); } if (dateTimeProvider == null) { throw new ArgumentNullException(nameof(dateTimeProvider)); } _Validator = validator; _InsertDbCommand = insertDbCommand; _Context = context; _DateTimeProvider = dateTimeProvider; }