Esempio n. 1
0
        public void Parse_GetsParsedRecords_WritesRecords()
        {
            const int RecordCount = 3;

            Stack <int> returnStack = new Stack <int>();

            returnStack.Push(0);
            returnStack.Push(RecordCount);

            _cifProcessor.ProcessBatch(default(IEnumerable <IEnumerable <string> >), default(int), default(ScheduleType),
                                       default(BatchArgs)).ReturnsForAnyArgs(x => { return(returnStack.Pop()); });

            ProcessingService sut = new ProcessingService(_cifProcessor, _outputWriter, _fileSystem);

            sut.Process("foo", "bar", 10, "bundy", null);

            _outputWriter.ReceivedWithAnyArgs(1)
            .Write(default(IEnumerable <IEnumerable <string> >));
        }