Exemple #1
0
        /// <summary>
        /// Creates a new solution instance with the document specified updated to have the specified file path.
        /// </summary>
        public Solution WithDocumentFilePath(DocumentId documentId, string filePath)
        {
            var newState = _state.WithDocumentFilePath(documentId, filePath);

            if (newState == _state)
            {
                return(this);
            }

            return(new Solution(newState));
        }