public void SetUp() { _excelRepository = MockRepository.GenerateMock<IRepository>(); _classGenerator = MockRepository.GenerateMock<IClassGenerator>(); _assemblyGenerator = MockRepository.GenerateMock<IAssemblyGenerator>(); _fileConfiguration = MockRepository.GenerateMock<IFileConfiguration>(); _excelToDtoMapper = new ExcelToDTOMapper(_excelRepository, _classGenerator, _assemblyGenerator, _fileConfiguration); _excelFiles = new List<string> { "TestExcel.xls" }; _workSheetNames = new List<string> { "Test1$", "Test2$" }; _classAttributes1 = new ClassAttributes("Test1"); _classAttributes2 = new ClassAttributes("Test2"); }
public void SetUp() { _excelRepository = MockRepository.GenerateMock <IRepository>(); _classGenerator = MockRepository.GenerateMock <IClassGenerator>(); _assemblyGenerator = MockRepository.GenerateMock <IAssemblyGenerator>(); _fileConfiguration = MockRepository.GenerateMock <IFileConfiguration>(); _excelToDtoMapper = new ExcelToDTOMapper(_excelRepository, _classGenerator, _assemblyGenerator, _fileConfiguration); _excelFiles = new List <string> { "TestExcel.xls" }; _workSheetNames = new List <string> { "Test1$", "Test2$" }; _classAttributes1 = new ClassAttributes("Test1"); _classAttributes2 = new ClassAttributes("Test2"); }
public void SetUp() { Configuration.ExcelMapper.SetUp(); _excelToDtoMapper = ServiceLocator.Current.GetInstance<IExcelToDTOMapper>(); }
public void SetUp() { Configuration.ExcelMapper.SetUp(); _excelToDtoMapper = ServiceLocator.Current.GetInstance <IExcelToDTOMapper>(); }
public Engine(IFileParser parser, IExcelToDTOMapper excelToDTOMapper) { _parser = parser; _excelToDTOMapper = excelToDTOMapper; }
public Engine(IFileParser parser, IExcelToDTOMapper excelToDTOMapper) { _parser = parser; _excelToDTOMapper = excelToDTOMapper; }