public static IDesignDataContext CreateForDogTime(out IDataSourceSetter setter) { var providers = new List<IReportDatasourceFactory> { (IReportDatasourceFactory) new DogTimeReportDatasourceProvider() }; var dataDefRep = new DesignReportMetadataAssociationRepository(); var datarep = new DesignDataRepository(providers); setter = new DataSourceSetter(datarep, dataDefRep, new ObjectGraphPathTraverser()); return new DesignDataContext2(dataDefRep,datarep); }
private static DesignReportMetadataAssociationRepository init(out DataSourceSetter setter, out IDesignDataRepository datarep) { var providers = new List<IReportDatasourceFactory> { new DogTimeReportDatasourceProvider() }; var dataDefRep = new DesignReportMetadataAssociationRepository(); datarep = new DesignDataRepository(providers); setter = new DataSourceSetter(datarep, dataDefRep, new ObjectGraphPathTraverser()); return dataDefRep; }