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();
        }
Exemple #2
0
 public void TestFixtureSetup()
 {
     StartUp.Boot();
     _readExcel = StartUp.Container.GetInstance <IReadExcel>();
 }
Exemple #3
0
 public ValuesController(IReadExcel readExcel)
 {
     this.readExcel = readExcel;
 }