Orders.com.BLL.Rules.OrderItemPriceValidityRule.OnValidate C# (CSharp) Method

OnValidate() protected method

protected OnValidate ( ) : void
return void
        protected override void OnValidate()
        {
            if (_item.Price != _product.Price)
            {
                Invalidate(string.Format("The price for {0} no longer reflects the current price in our system", _product.Name));
            }
        }
    }