public void should_use_argument_for_property_by_type(Func <BuildChainPatternTree, FinalTuner> tune)
        {
            const int expected = 3254;

            // --arrange
            var target = CreateTarget();

            tune(target)
            .UsingArguments(ForProperty.OfType <int>().UseFactoryMethod(_ => expected));

            // --act
            var actual = target.Build <ISubject>() !;

            // --assert
            actual.Should().NotBeNull();
            actual.IntProperty.Should().Be(expected);
        }
        public void should_use_resolver_for_property_by_type()
        {
            const int expected = 3254;
            // --arrange
            var target = CreateTarget();

            target
            .Treat <Subject>()
            .AsIs()
            .InjectProperty(ForProperty.OfType <int>().UseFactoryMethod(_ => expected));

            // --act
            var actual = target.Build <Subject>();

            // --assert
            actual.Should().NotBeNull();
            actual.IntProperty.Should().Be(expected);
        }