コード例 #1
0
        public MainClass(IReadExcel readExcel, IProcessWordStats processWordStats, IProcessAddress processAddress, IWriteOutput writeOutput)
        {
            ReadExcel         = readExcel;
            _processWordStats = processWordStats;
            _processAddress   = processAddress;
            this._writeOutput = writeOutput;

            if (ReadExcel == null)
            {
                throw new ArgumentNullException("ReadExcel");
            }
            if (_processWordStats == null)
            {
                throw new ArgumentNullException("ProcessWordStats");
            }

            if (_processAddress == null)
            {
                throw new ArgumentNullException("ProcessAddress");
            }

            if (this._writeOutput == null)
            {
                throw new ArgumentNullException("WriteOutput");
            }

            LoadSettings();
        }
コード例 #2
0
 public ClrDiag()
 {
     _output  = new ConsoleOutputWriter();
     _console = new SystemConsole();
 }
コード例 #3
0
 public ClrDiag()
 {
     _output = new ConsoleOutputWriter();
     _console = new SystemConsole();
 }
コード例 #4
0
 public DependencySorter(IReadInput read, IAlgorithm algorithm, IWriteOutput write)
 {
     _read = read;
     _algorithm = algorithm;
     _write = write;
 }