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

            customer.Accept(payment);

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