Example #1
0
        public bool Validate()
        {
            AddNotifications(new Contract()
                             .HasLen(IDCustomer.ToString(), 36, "Customer", "ID do cliente inválido")
                             .IsGreaterThan(OrderItems.Count, 0, "OrderItems", "Nenhum item no pedido"));

            return(Valid);
        }
Example #2
0
 public DBCustomerTest()
 {
     //
     // TODO: Add constructor logic here
     //
     dbCustomer = new DCustomer();
     dbDiscountGroup = new DDiscountGroup();
 }