protected override void SetUp() { typesCache = NewMock<ITypesCache>(); typeFinder = NewMock<ITypeFinder>(); dataTypeFactory = NewMock<IDataTypeFactory>(); finder = new TypeInAssemblyFinder(GetType().Assembly, typesCache, dataTypeFactory); }
public DefaultTypeFinder(Assembly seedAssembly, IDataTypeFactory dataTypeFactory) { var typeFinderConduit = new TypeFinderConduit(); var typesCache = new CachedTypesFinder(dataTypeFactory); ITypeFinder genericTypeFinder = new GenericTypeFinder(typesCache, typeFinderConduit, dataTypeFactory); ITypeFinder typeInAssemblyFinder = new TypeInAssemblyFinder(seedAssembly, typesCache, dataTypeFactory); ITypeFinder typeInReferencedAssemblyFinder = new TypeInReferencedAssemblyFinder(seedAssembly, typesCache, typeFinder, dataTypeFactory); typeFinder = new TypeFinder(typesCache, genericTypeFinder, typeInAssemblyFinder, typeInReferencedAssemblyFinder); typeFinderConduit.SetTarget(typeFinder); }
public DefaultTypeFinder(Assembly seedAssembly, IDataTypeFactory dataTypeFactory) { var typeFinderConduit = new TypeFinderConduit(); var typesCache = new CachedTypesFinder(dataTypeFactory); ITypeFinder genericTypeFinder = new GenericTypeFinder(typesCache, typeFinderConduit, dataTypeFactory); ITypeFinder typeInAssemblyFinder = new TypeInAssemblyFinder(seedAssembly, typesCache, dataTypeFactory); ITypeFinder typeInReferencedAssemblyFinder = new TypeInReferencedAssemblyFinder(seedAssembly, typesCache, typeFinder, dataTypeFactory); typeFinder = new TypeFinder(typesCache, genericTypeFinder, typeInAssemblyFinder, typeInReferencedAssemblyFinder); typeFinderConduit.SetTarget(typeFinder); }
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); }