public void GivenRegexDefaultErrorEntry_ShouldExtractDefaultErrorEntryDetails() { var dataService = new DataService("[11:57:05] : [Step 1/6] error: so here is an thing error"); var dataDictionary = new DataDictionary(); var valueExtractor = new ValueExtractor(dataDictionary); var defaultError = EntryFactory.CreateDefaultErrorEntryFunc(1)(valueExtractor, dataService); Assert.Equal(EntryType.DefaultErrorEntry(), defaultError.EntryType); Assert.Equal(" so here is an thing error", defaultError.Error); }
private List <IDefaultErrorEntry> DefaultErrorEntries(uint start, uint end) => dataService.FilteredData(start, end).MapCalcEntryTypeFunc(valueExtractor, EntryType.DefaultEntryTypes) .FilterEntryDefinitionTypeFunc(EntryFactory.CreateDefaultErrorEntryFunc, EntryType.DefaultErrorEntry()) .EvaluateToList(valueExtractor, dataService);