protected override async Task <IProject> ReadFromLocationAsync(string location) { var entityRecords = await _fileReaderService.ReadAsync(location); var text = await _rawFileService.ReadAllTextAsync(location); var project = new PackageListProject(location); project.RawContent = text; InitializeProjectContent(project, entityRecords); await _projectManager.SetActiveProjectAsync(project); return(project); }
private IProject InitializeProjectContent(PackageListProject project, IEnumerable <IEntity> records) { project.PackageCollection = records; return(project); }