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