public void GetPdfInvoice() { InvoiceProxy proxy = new InvoiceProxy(); InvoiceDto dto1 = this.GetItemSale(); proxy.Insert(dto1); Assert.IsTrue(dto1.Uid > 0, "Uid must be > 0 after save."); proxy.GetPdfInvoiceByUid(dto1.Uid, "ItemSale.pdf"); // Template not specified. Will use default template. proxy.GetPdfInvoiceByUid(dto1.Uid, this.IncTaxTemplateUid, "ItemSaleIncTax.pdf"); // Use specific template. }