public void RegisterPropertiesByName()
        {
            // Arrange
            var context = new GenericApplicationContext();
            context.Configure()
                .IncludeAssembly(x => x.FullName.StartsWith("Spring.AutoRegistration.Test"))
                .Include(x => x.ImplementsITypeName(), Then.Register().UsingSingleton().InjectByProperty(If.DecoratedWith<InjectAttribute>))
                .ApplyAutoRegistration();

            // Act
            var bar = context.GetObject("Bar") as Bar;

            // Assert
            bar.Foo.Should().NotBeNull();
        }
        public void RegisterITypeName()
        {
            // Arrange
            var context = new GenericApplicationContext();
            context.Configure()
                .IncludeAssembly(x => x.FullName.StartsWith("Spring.AutoRegistration.Test"))
                .Include(x => x.ImplementsITypeName(), Then.Register())
                .ApplyAutoRegistration();

            // Act
            var foo = context.GetObject("Foo") as IFoo;

            // Assert
            foo.Should().NotBeNull();
        }