示例#1
0
 private void ValidateGet(string title)
 {
     if (title.Length < 1)
     {
         throw new Exception(ResourceConstantsExceptions.NotValid("Name"));
     }
 }
示例#2
0
 private void ValidateAddItemQuantity(int quantity)
 {
     if (quantity <= 0)
     {
         throw new Exception(ResourceConstantsExceptions.NotValid("Quantity"));
     }
 }
示例#3
0
 private void ValidateGetPrice(double price)
 {
     if (price <= 0)
     {
         throw new Exception(ResourceConstantsExceptions.NotValid("Price"));
     }
 }