/// <summary> /// This injects the current assembly into the DependencyImplementationSelector /// </summary> protected override void ConfigureDependencyImplentationSelector(ImplementationSelector defaultImplementationSelector) { base.ConfigureDependencyImplentationSelector(defaultImplementationSelector); defaultImplementationSelector.AddAssembly(typeof(ODataUnitTestModule).Assembly); defaultImplementationSelector.AddAssembly(typeof(ODataReaderTestCase).Assembly); // TODO: Consider adding this to the base if we find adding spatial to other test projects. defaultImplementationSelector.AddAssembly(typeof(SpatialClrTypeResolver).Assembly); }
/// <summary> /// This helps the dependency injection mechanism find assemblies to look for implementations /// </summary> protected virtual void ConfigureDependencyImplentationSelector(ImplementationSelector defaultImplementationSelector) { foreach (Assembly assembly in DependencyImplementationAssemblies.GetAssemblies()) { defaultImplementationSelector.AddAssembly(assembly); } }