public void GetFilePath() { InvoiceGen invoiceGen = new InvoiceGen(); string filepath = invoiceGen.Filepath(); string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\Fakturaer"; Assert.AreEqual(path, filepath); }
private void ShowSelectedInvoice_Clicked(object sender, RoutedEventArgs e) { InvoiceGen invoice = new InvoiceGen(); List <Invoice> invoices = controller.GetInvoiceList(); Invoice[] invoicesarray = invoices.ToArray(); int count = Lv.SelectedIndex; invoice.OpenDocx("", invoicesarray[count].Filepath); }