private void AssignEnvironmentToDefaultScope(Environment environment) { if (environment.IsClosed) { environment.Reactivate(); } environment.Project = defaultProject; environment.Save(); }