public void SetUp() { var dataTypeFactory = new DataTypeFactory(); var seedAssembly = GetType().Assembly; var typeFinderConduit = new TypeFinderConduit(); var typesCache = new CachedTypesFinder(dataTypeFactory); ITypeFinder genericTypeFindeer = new GenericTypeFinder(typesCache, typeFinderConduit, dataTypeFactory); ITypeFinder typeInAssemblyFinder = new TypeInAssemblyFinder(seedAssembly, typesCache, dataTypeFactory); ITypeFinder typeInReferencedAssembliesFinder = new TypeInReferencedAssemblyFinder(seedAssembly, typesCache, typeFinder, dataTypeFactory); typeFinder = new TypeFinder(typesCache, genericTypeFindeer, typeInAssemblyFinder, typeInReferencedAssembliesFinder); typeFinderConduit.SetTarget(typeFinder); }
protected override void SetUp() { dataTypeFactory = NewMock <IDataTypeFactory>(); finder = new CachedTypesFinder(dataTypeFactory); }