Пример #1
0
 public RangeAddressFactory(ExcelDataProvider excelDataProvider, AddressTranslator addressTranslator, IndexToAddressTranslator indexToAddressTranslator)
 {
     Require.That(excelDataProvider).Named("excelDataProvider").IsNotNull();
     Require.That(addressTranslator).Named("addressTranslator").IsNotNull();
     Require.That(indexToAddressTranslator).Named("indexToAddressTranslator").IsNotNull();
     _excelDataProvider = excelDataProvider;
     _addressTranslator = addressTranslator;
     _indexToAddressTranslator = indexToAddressTranslator;
 }
Пример #2
0
 public RangeAddressFactory(ExcelDataProvider excelDataProvider, AddressTranslator addressTranslator, IndexToAddressTranslator indexToAddressTranslator)
 {
     Require.That(excelDataProvider).Named("excelDataProvider").IsNotNull();
     Require.That(addressTranslator).Named("addressTranslator").IsNotNull();
     Require.That(indexToAddressTranslator).Named("indexToAddressTranslator").IsNotNull();
     _excelDataProvider        = excelDataProvider;
     _addressTranslator        = addressTranslator;
     _indexToAddressTranslator = indexToAddressTranslator;
 }
Пример #3
0
 public void Setup()
 {
     _excelDataProvider = MockRepository.GenerateStub<ExcelDataProvider>();
     _excelDataProvider.Stub(x => x.ExcelMaxRows).Return(ExcelMaxRows);
     _addressTranslator = new AddressTranslator(_excelDataProvider);
 }