Exemple #1
0
        public XmlCurrencyDataSource( XmlDataStore dataStore )
        {
            DbC.ThrowIfArgumentNull( dataStore, "dataStore" );

            var ds = (SingleDataSource)dataStore.GetData( Name ).SingleOrDefault();
            myCurrencyTable = (CurrencyTable)ds.Value;
        }
        private IDataSourceFactory CreateXmlDataSourceFactory()
        {
            DataStore = new XmlDataStore();

            var dataSourceFactory = new XmlDataSourceFactory( DataStore );
            return dataSourceFactory;
        }
        public void SetUp()
        {
            var xmlDataStore = new XmlDataStore();
            myPrimaryDsFactory = new XmlDataSourceFactory( xmlDataStore );

            mySecondaryDsFactory = new TomDataSourceFactory();
        }
Exemple #4
0
        public void SetUp()
        {
            myDataStore = new XmlDataStore();

            foreach ( var ds in GetEmbeddedDataSources() )
            {
                myDataStore.Add( ds );
            }
        }
Exemple #5
0
 public XmlDataSourceFactory( XmlDataStore dataStore )
 {
     myDataStore = dataStore;
 }