예제 #1
0
 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));
 }
예제 #2
0
 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>()));
 }
예제 #4
0
 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>()));
 }