/// <summary> /// Create a new solution instance with the project specified updated to have /// the specified hasAllInformation. /// </summary> // TODO: make it public internal Solution WithHasAllInformation(ProjectId projectId, bool hasAllInformation) { var newState = _state.WithHasAllInformation(projectId, hasAllInformation); if (newState == _state) { return(this); } return(new Solution(newState)); }