Ejemplo n.º 1
0
        public string RequestPath()
        {
            _consoleWriter.WriteLine("Geef solution path:");
            FolderPath = _consoleReader.ReceiveInput();

            if (!PathIsRooted(FolderPath))
            {
                throw new NotRootedPathException();
            }

            if (!ExistingDirectory(FolderPath))
            {
                throw new NonExistingDirectoryException();
            }

            return(FolderPath);
        }