コード例 #1
0
        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);
        }
コード例 #2
0
 public void Setup()
 {
     _container             = CifParserIocContainerBuilder.Build();
     _enumPropertyParsers   = _container.Resolve <IRecordEnumPropertyParser[]>();
     _timingAllowanceParser = _container.Resolve <ITimingAllowanceParser>();
 }
コード例 #3
0
 public void Setup()
 {
     _container = CifParserIocContainerBuilder.Build();
     _enumPropertyParsers = _container.Resolve<IRecordEnumPropertyParser[]>();
     _timingAllowanceParser = _container.Resolve<ITimingAllowanceParser>();
 }