Exemple #1
0
        public void should_construct_from_attribute()
        {
            var blueprint = new AttributeBlueprint <Set>(x => x.Value);

            var result = blueprint.Construct(new ConstruktionContext(typeof(Foo).GetProperty("Bar")), Default.Pipeline);

            result.ShouldBe("Set");
        }
        public void AddAttributeBlueprint <T>(Func <T, object> value) where T : Attribute
        {
            var attributeBlueprint = new AttributeBlueprint <T>(value);

            _customBlueprints.Add(attributeBlueprint);
        }