Beispiel #1
0
        private void SetFileProperties(string fileName, string documentName)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentNullException(nameof(fileName));
            }

            if (string.IsNullOrEmpty(documentName))
            {
                throw new ArgumentNullException(nameof(documentName));
            }

            if (!_fileProxy.FileExists(fileName))
            {
                throw new FileNotFoundException(fileName);
            }

            _fileName     = fileName;
            _documentName = documentName;
        }