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; }
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"); }
public ISOCountryReader(IStreamParser <T> streamParser, IValueNormalizer <T> valueNormalizer) : this(streamParser, valueNormalizer, new CachingWebSource()) { }
public TestCountryReader(IValueNormalizer <TestCountry> valueNormalizer) : base(new TestParser(), valueNormalizer, new TestCountrySource()) { }