public void SalesInvoicecmdProcessAccessCompute_ChargeIsNotAllowedAndBalanceIsNegative_Applicable() { var cashCustomer = PaymentHelper.GetCustomer("LGBUI"); PaymentHelper.DisallowCharge(cashCustomer); var salesInvoice = PaymentHelper.CreateInvoiceWithDetail(cashCustomer, PaymentHelper.DefaultProduct, 1, 10).Invoice; var payment = PaymentHelper.CreatePayment(cashCustomer, salesInvoice.Balance + 10, salesInvoice).Payment; payment.cmdPay.TryExecute(); Assert.IsFalse(IsHiddenAndNotApplicable(salesInvoice.accesscmdProcess)); }