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); }
public Invoice(InvoiceService invoiceService, VATService vatService) { _invoiceService = invoiceService; _vatService = vatService; _invoiceService.GetInvoice(customer, supllier, Amount, _vatService); }