/// <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); } }
/// <summary> /// Specify assemblies to look for in finding implementations for dependency contracts /// </summary> /// <param name="defaultImplementationSelector"> implementationSelector on which we register implementations from assemblies</param> protected override void ConfigureImplementationSelector(Microsoft.Test.Taupo.Contracts.IImplementationSelector defaultImplementationSelector) { foreach (Assembly assembly in DependencyImplementationAssemblies.GetAssemblies()) { defaultImplementationSelector.AddAssembly(assembly); } base.ConfigureImplementationSelector(defaultImplementationSelector); }