示例#1
0
        public void should_connect_implementations()
        {
            _scanner
            .Applies
            .ToAssemblyContainingType(typeof(IOpenType <>));

            _scanner
            .ConnectImplementationsToTypesClosing(typeof(IOpenType <>));

            _scanner
            .Configure(_registry);

            var services = _registry.ServicesFor(typeof(IOpenType <>));

            services.ShouldContain(def => def.Type == typeof(OpenType <>));
        }