private void SetupTranslator(int maxRows, ExcelReferenceType refType)
 {
     _excelDataProvider = MockRepository.GenerateStub<ExcelDataProvider>();
     _excelDataProvider.Stub(x => x.ExcelMaxRows).Return(maxRows);
     _indexToAddressTranslator = new IndexToAddressTranslator(_excelDataProvider, refType);
 }
 public void Setup()
 {
     _excelDataProvider = MockRepository.GenerateStub<ExcelDataProvider>();
     _excelDataProvider.Stub(x => x.ExcelMaxRows).Return(ExcelMaxRows);
     _addressTranslator = new AddressTranslator(_excelDataProvider);
 }