public BankOCRService(IFileParser fileParser, IEntryParser entryParser, IDigitalNumberParser digitalNumberParser, IIntegerParser inegerParser, ICheckSumHelper checkSumService) { this.FileParser = fileParser; this.EntryParser = entryParser; this.DigitalNumberParser = digitalNumberParser; this.IntegerParser = inegerParser; _checkSumService = checkSumService; }
public void SetUp() { m_EntryParser = MockRepository.GenerateMock <IEntryParser>(); m_NumberProcessor = MockRepository.GenerateMock <INumberProcessor>(); m_EntryParser.Stub(m => m.Parse(ENTITY_WITH_VALID_NUMBER)).Return(VALID_NUMBER); m_EntryParser.Stub(m => m.Parse(ENTITY_WITH_INVALID_NUMBER)).Return(INVALID_NUMBER); m_NumberProcessor.Stub(m => m.Process(VALID_NUMBER)).Return(VALID_NUMBER); m_NumberProcessor.Stub(m => m.Process(INVALID_NUMBER)).Return(INVALID_NUMBER_OUTPUT); m_OcrMachine = new OcrMachine(m_EntryParser, m_NumberProcessor); }
/// <summary> /// Ctor. /// </summary> /// <param name="entryParser">Entry parser.</param> /// <param name="numberProcessor">Number processor.</param> public OcrMachine(IEntryParser entryParser, INumberProcessor numberProcessor) { m_EntryParser = entryParser; m_NumberProcessor = numberProcessor; }
public IniParser( IEntryParser entryParser) { this.entryParser = entryParser; }
public SearchService(ILogger <SearchService> logger, HttpClient httpClient, IEntryParser entryParser) : base(logger) { _httpClient = httpClient; _entryParser = entryParser; }
public ConsoleIOProcessor(IConsole console, IEntryParser entryParser, IWarehouseConsoleFormatter warehouseConsoleFormatter) { _console = console; _entryParser = entryParser; _warehouseConsoleFormatter = warehouseConsoleFormatter; }