Exemple #1
0
        public void Build_ReturnsNewFactory()
        {
            DatasourceFactory factory = new DatasourceFactory(typeof(BlankDataSource));
            BlankDataSource   source  = factory.Build() as BlankDataSource;

            Assert.NotNull(source);
        }
Exemple #2
0
        public EnumerableSource(int minCount, int maxCount, object[] args)
        {
            mMinCount = minCount;
            mMaxCount = maxCount;
            mArgs     = args;

            var factory = new DatasourceFactory(typeof(TSource));

            factory.SetParams(mArgs);
            mSource = (IDatasource <T>)factory.Build();
        }