Ejemplo n.º 1
0
        public override AbstractPriceCreateResponse Create(AbstractPriceCreateArg arg)
        {
            Type type;

            if (!_userTypeDictionary.TryGetValue(arg.UserType, out type))
            {
                return(null);
            }

            return(new AbstractPriceCreateResponse
            {
                Product = (PriceProduct)Activator.CreateInstance(type, arg.PriceCalculatorService)
            });
        }
 public abstract AbstractPriceCreateResponse Create(AbstractPriceCreateArg arg);