public UnitContentResourceDownloadManager(IDownloadService downloadService, IBaseModule unit, IContentResourceServcie unitContentService, IConstants constants)
{
this.downloadService = downloadService;
this.constants = constants;
this.unitContentService = unitContentService;
this.Unit = unit as Unit;
var originalContent = unitContentService.Content;
// Replace swf to jpg, flv to mp4
ContentHelper.ReplaceUrlFileFormat(ref originalContent);
ContentHelper.ReplaceUrlToLocalResourcePath(ref originalContent);
this.updatedContent = originalContent;
this.ResourceList = new List<MapfileItem>();
this.BuildDownloadResource();
}