Пример #1
0
        public void SetUp()
        {
            _fakeReaderProvider = Substitute.For <IDataReaderProvider>();
            _fakeReader         = Substitute.For <IDataReader>();

            _provider = new FileDataProvider(_fakeReaderProvider);
        }
Пример #2
0
 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"];
 }
Пример #3
0
        /// <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();
        }
Пример #4
0
        /// <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();
        }
Пример #5
0
 public DefaultDecoder(IDataReaderProvider dataReaderProvider)
 {
     _dataReaderProvider = dataReaderProvider;
 }
Пример #6
0
 public FileDataProvider(IDataReaderProvider readerProvider)
 {
     _readerProvider = readerProvider;
 }