Пример #1
0
        public ISOCountryReader(IStreamParser <T> streamParser, IValueNormalizer <T> valueNormalizer, ISourceProvider sourceProvider)
        {
            if (valueNormalizer == null)
            {
                throw new ArgumentNullException("valueNormalizer");
            }
            if (sourceProvider == null)
            {
                throw new ArgumentNullException("sourceProvider");
            }
            if (streamParser == null)
            {
                throw new ArgumentNullException("streamParser");
            }

            this.ValueNormalizer = valueNormalizer;
            this.SourceProvider  = sourceProvider;
            this.StreamParser    = streamParser;
        }
Пример #2
0
 public ISOCountryReader(IStreamParser <T> streamParser, IValueNormalizer <T> valueNormalizer, ISourceProvider sourceProvider)
 {
     ValueNormalizer = valueNormalizer ?? throw new ArgumentNullException("valueNormalizer");
     SourceProvider  = sourceProvider ?? throw new ArgumentNullException("sourceProvider");
     StreamParser    = streamParser ?? throw new ArgumentNullException("streamParser");
 }
Пример #3
0
 public ISOCountryReader(IStreamParser <T> streamParser, IValueNormalizer <T> valueNormalizer)
     : this(streamParser, valueNormalizer, new CachingWebSource())
 {
 }
Пример #4
0
 public TestCountryReader(IValueNormalizer <TestCountry> valueNormalizer)
     : base(new TestParser(), valueNormalizer, new TestCountrySource())
 {
 }