コード例 #1
0
        public IEnumerable<TypeSpecification> OnGetImplementations(TypeSpecification interfaceType)
        {
            var handler = GetImplementations;
            if (handler != null)
            {
                return handler(interfaceType);
            }

            return null;
        }
コード例 #2
0
 /// <summary>
 /// Gets the implementations to test
 /// </summary>
 /// <param name="interfaceType">Type of the interface.</param>
 /// <returns>IEnumerable{TypeSpecification}.</returns>
 public IEnumerable<TypeSpecification> GetImplementations(TypeSpecification interfaceType)
 {
     var host = _dependencyResolver.Resolve<IUIServiceHost>();
     return host.OnGetImplementations(interfaceType);
 }