/// <summary> /// Creates a new solution instance with the project specified updated to have the name. /// </summary> public Solution WithProjectName(ProjectId projectId, string name) { var newState = _state.WithProjectName(projectId, name); if (newState == _state) { return(this); } return(new Solution(newState)); }