/// <summary> /// 可设置repository的构造函数(主要用于测试用例) /// </summary> public AttachmentDownloadService(IAttachmentDownloadRepository attachmentDownloadRepository, IRepository<Attachment> repository) { this._attachmentDownloadRepository = attachmentDownloadRepository; this._attachmentRepository = repository; }
/// <summary> /// 可设置repository的构造函数(主要用于测试用例) /// </summary> public AttachmentDownloadService(IAttachmentDownloadRepository attachmentDownloadRepository, IRepository <Attachment> repository) { this._attachmentDownloadRepository = attachmentDownloadRepository; this._attachmentRepository = repository; }