public UnitContentResourceService(IDownloadService downloadService, int unitId, IConstants constants)
{
this.downloadService = downloadService;
this.ModuleId = unitId;
this.constants = constants;
// Get all course content.
this.fullContentLink = new Uri(constants.ServicePrefix + string.Format(unitLink, this.ModuleId, this.constants.CultureCode, this.constants.SiteVersion, this.constants.PartnerCode));
// Download unit content.
this.Content = downloadService.DownloadFromPath(this.fullContentLink);
}