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

            customer.Accept(payment);

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