public void Build_ReturnsNewFactory() { DatasourceFactory factory = new DatasourceFactory(typeof(BlankDataSource)); BlankDataSource source = factory.Build() as BlankDataSource; Assert.NotNull(source); }
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(); }