public CommandsController( IPdfFileTransformerService pdfFileTransformerService, IPdfFileRepository pdfFileRepository, IDecodeValidateService decodeValidateService) { _pdfTransformerService = pdfFileTransformerService ?? throw new ArgumentNullException(nameof(pdfFileTransformerService)); _pdfFileRepository = pdfFileRepository ?? throw new ArgumentNullException(nameof(pdfFileRepository)); _decodeValidateService = decodeValidateService ?? throw new ArgumentNullException(nameof(decodeValidateService)); }
public QueriesController( IPdfFileTransformerService pdfFileTransformerService, IPdfFileRepository pdfFileRepository, IFileListTransformerService fileListTransformerService) { _pdfTransformerService = pdfFileTransformerService ?? throw new ArgumentNullException(nameof(pdfFileTransformerService)); _pdfFileRepository = pdfFileRepository ?? throw new ArgumentNullException(nameof(pdfFileRepository)); _fileListTransformerService = fileListTransformerService ?? throw new ArgumentNullException(nameof(fileListTransformerService)); }
private QueriesController CreateSut( IPdfFileTransformerService pdfFileTransformerService = null, IPdfFileRepository pdfFileRepository = null, IFileListTransformerService fileListTransformerService = null) { return(new QueriesController( pdfFileTransformerService ?? Mock.Of <IPdfFileTransformerService>(), pdfFileRepository ?? Mock.Of <IPdfFileRepository>(), fileListTransformerService ?? Mock.Of <IFileListTransformerService>())); }
protected CommandsController CreateSut( IPdfFileTransformerService pdfFileTransformerService = null, IPdfFileRepository pdfFileRepository = null, IDecodeValidateService decodeValidateService = null) { return(new CommandsController( pdfFileTransformerService ?? Mock.Of <IPdfFileTransformerService>(), pdfFileRepository ?? Mock.Of <IPdfFileRepository>(), decodeValidateService ?? Mock.Of <IDecodeValidateService>())); }