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