Пример #1
0
        public Invoice GetInvoice(Customer customer, Supllier supllier, double amount, VATService vatService)
        {
            _vatService = vatService;

            invoice = new Invoice()
            {
                VAT      = _vatService.CalculateVAT(customer, supllier),
                Amount   = amount,
                customer = customer,
                supllier = supllier
            };
            return(invoice);
        }
Пример #2
0
 public Invoice(InvoiceService invoiceService, VATService vatService)
 {
     _invoiceService = invoiceService;
     _vatService     = vatService;
     _invoiceService.GetInvoice(customer, supllier, Amount, _vatService);
 }