public IntermediateLocationCifRecordParser(IRecordEnumPropertyParser[] enumPropertyParsers, ITimingAllowanceParser timingAllowanceParser) { if (enumPropertyParsers == null) { throw new ArgumentNullException(nameof(enumPropertyParsers)); } if (timingAllowanceParser == null) { throw new ArgumentNullException(nameof(timingAllowanceParser)); } _timingAllowanceParser = timingAllowanceParser; _enumPropertyParsers = enumPropertyParsers.ToDictionary(x => x.PropertyKey, x => x); }
public void Setup() { _container = CifParserIocContainerBuilder.Build(); _enumPropertyParsers = _container.Resolve <IRecordEnumPropertyParser[]>(); _timingAllowanceParser = _container.Resolve <ITimingAllowanceParser>(); }
public void Setup() { _container = CifParserIocContainerBuilder.Build(); _enumPropertyParsers = _container.Resolve<IRecordEnumPropertyParser[]>(); _timingAllowanceParser = _container.Resolve<ITimingAllowanceParser>(); }