public AttachmentController(IAttachmentsService attachmentsService, ISessionService sessionService,
     FileUploadConfigModel fileUploadConfig)
 {
     _attachmentsService = attachmentsService;
     _sessionService = sessionService;
     _fileUploadConfig = fileUploadConfig;
 }
Exemple #2
0
 public AttachmentControllerTests()
 {
     _fileUploadConfig = new FileUploadConfigModel
     {
         AllowedExtensions = new List <string> {
             ".pdf", ".docx"
         }
     };
     _sut = new AttachmentController(_mockAttachmentsService, _mockSessionService, _fileUploadConfig);
 }