public void SetUp() { _fakeReaderProvider = Substitute.For <IDataReaderProvider>(); _fakeReader = Substitute.For <IDataReader>(); _provider = new FileDataProvider(_fakeReaderProvider); }
public Command(Binder binder) { this.binder = binder; rest = (RestClient)Application.Current.Properties["restClient"]; restReaderProvider = (IDataReaderProvider)Application.Current.Properties["restReaderProvider"]; restWriterProvider = (IDataWriterProvider)Application.Current.Properties["restWriterProvider"]; }
/// <summary> /// Ctor /// </summary> /// <param name="provider"></param> public DataModelBinder(IDataReaderProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } this.Provider = provider; this.DefaultBinder = new DefaultModelBinder(); }
public DefaultDecoder(IDataReaderProvider dataReaderProvider) { _dataReaderProvider = dataReaderProvider; }
public FileDataProvider(IDataReaderProvider readerProvider) { _readerProvider = readerProvider; }