public void StageProject(Project project) { if (project == null) { throw new ArgumentNullException(nameof(project)); } stagedProject = new StagedProject(project, project.Create(new PersistenceRegistry())); }
public void StageProject(IProject project) { if (!(project is RiskeerProject riskeerProject)) { throw new ArgumentNullException(nameof(project)); } var registry = new PersistenceRegistry(); stagedProject = new StagedProject(riskeerProject, riskeerProject.Create(registry)); }
public void UnstageProject() { stagedProject = null; }