Example #1
0
        private void CreateCancellingPayment(Invoice invoice, Customer customer)
        {
            var number  = _documentNumberGenerator.NextForPayment();
            var payment = invoice.CreateCancellingPayment(number);

            customer.Accept(payment);

            _paymentRepository.Add(payment);
        }
Example #2
0
 public static void Mortgage(Customer customer)
 {
     customer.Accept(new MortgageVisitor());
 }
Example #3
0
 public static void Leasing(Customer customer)
 {
     customer.Accept(new LeasingVisitor());
 }