Пример #1
0
        public FileDataContext(string[] args, FileDataOptionSet fileDataOptionSet, IFileDetails fileDetails)
        {
            _args = args ?? throw new ArgumentNullException();
            _fileDataOptionSet = fileDataOptionSet ?? throw new ArgumentNullException();

            if (_args.Length != 2)
            {
                throw new ArgumentException("Must have two arguments");
            }

            FileDataProperties = new FileDataProperties(args[1], fileDetails);
        }
Пример #2
0
 public FileDataContext(string[] args, FileDataOptionSet fileDataOptionSet) : this(args, fileDataOptionSet, new FileDetailsAdapter())
 {            
 }