private void CreateCancellingPayment(Invoice invoice, Customer customer) { var number = _documentNumberGenerator.NextForPayment(); var payment = invoice.CreateCancellingPayment(number); customer.Accept(payment); _paymentRepository.Add(payment); }
public static void Mortgage(Customer customer) { customer.Accept(new MortgageVisitor()); }
public static void Leasing(Customer customer) { customer.Accept(new LeasingVisitor()); }