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