Esempio n. 1
0
        private static Tuple <ConstructorInfo, PropertyInfo[]> GetMatchingConstructor(MapsToAggregateRootConstructorAttribute attribute, Type commandType)
        {
            var strategy = new AttributePropertyMappingStrategy();
            var sources  = strategy.GetMappedProperties(commandType);

            return(PropertiesToMethodMapper.GetConstructor(sources, attribute.Type));
        }
        private static Tuple <MethodInfo, PropertyInfo[]> GetMatchingMethod(MapsToAggregateRootMethodAttribute attribute, Type commandType, string methodName)
        {
            var strategy = new AttributePropertyMappingStrategy();
            var sources  = strategy.GetMappedProperties(commandType);

            return(PropertiesToMethodMapper.GetMethod(sources, attribute.Type, methodName));
        }
Esempio n. 3
0
        private Tuple <ConstructorInfo, PropertyInfo[]> GetMatchingConstructor(Type commandType)
        {
            var strategy = new AttributePropertyMappingStrategy();
            var sources  = strategy.GetMappedProperties(commandType);

            return(PropertiesToMethodMapper.GetConstructor(sources, Type));
        }
        private Tuple <MethodInfo, PropertyInfo[]> GetMatchingMethod(Type commandType, string methodName)
        {
            var strategy = new AttributePropertyMappingStrategy();
            var sources  = strategy.GetMappedProperties(commandType);

            return(PropertiesToMethodMapper.GetMethod(sources, Type, methodName));
        }