public void CloseProject(Project project)
        {
            bool containsProject = this.projects
                .Any(pr => pr == project);

            if(!containsProject)
            {
                throw new ArgumentException("Project is not part of this developer's project");
            }

            project.IsOpen = false;
        }
示例#2
0
 public void CloseProject(Project project)
 {
     this.IsOpen = false;
     Console.WriteLine("The project is closed !");
 }