Exemple #1
0
        // # Main method
        private static void Main()
        {
            CreateInvoiceSample sampleCreateInvoice = new CreateInvoiceSample();

            sampleCreateInvoice.CreateInvoiceAPIOperation();

            CreateAndSendInvoiceSample sampleCreateAndSendInvoice = new CreateAndSendInvoiceSample();

            sampleCreateAndSendInvoice.CreateAndSendInvoiceAPIOperation();

            GetInvoiceDetailsSample sampleGetInvoiceDetails = new GetInvoiceDetailsSample();

            sampleGetInvoiceDetails.GetInvoiceDetailsAPIOperation();

            SearchInvoicesSample sampleSearchInvoices = new SearchInvoicesSample();

            sampleSearchInvoices.SearchInvoicesAPIOperation();

            SendInvoiceSample sampleSendInvoice = new SendInvoiceSample();

            sampleSendInvoice.SendInvoiceAPIOperation();

            UpdateInvoiceSample sampleUpdateInvoice = new UpdateInvoiceSample();

            sampleUpdateInvoice.UpdateInvoiceAPIOperation();

            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
	public void CreateInvoice() 
    {
        CreateInvoiceSample sample = new CreateInvoiceSample();
        CreateInvoiceResponse reponseCreateInvoice = sample.CreateInvoiceAPIOperation(); 
        Assert.IsNotNull(reponseCreateInvoice);
        Assert.AreEqual(reponseCreateInvoice.responseEnvelope.ack.ToString().Trim().ToUpper(), "SUCCESS");
		Assert.IsNotNull(reponseCreateInvoice.invoiceID);
	}
    public void CreateInvoice()
    {
        CreateInvoiceSample   sample = new CreateInvoiceSample();
        CreateInvoiceResponse reponseCreateInvoice = sample.CreateInvoiceAPIOperation();

        Assert.IsNotNull(reponseCreateInvoice);
        Assert.AreEqual(reponseCreateInvoice.responseEnvelope.ack.ToString().Trim().ToUpper(), "SUCCESS");
        Assert.IsNotNull(reponseCreateInvoice.invoiceID);
    }
        // # Main method
        private static void Main()
        {
            CreateInvoiceSample sampleCreateInvoice = new CreateInvoiceSample();
            sampleCreateInvoice.CreateInvoiceAPIOperation();

            CreateAndSendInvoiceSample sampleCreateAndSendInvoice = new CreateAndSendInvoiceSample();
            sampleCreateAndSendInvoice.CreateAndSendInvoiceAPIOperation();

            GetInvoiceDetailsSample sampleGetInvoiceDetails = new GetInvoiceDetailsSample();
            sampleGetInvoiceDetails.GetInvoiceDetailsAPIOperation();

            SearchInvoicesSample sampleSearchInvoices = new SearchInvoicesSample();
            sampleSearchInvoices.SearchInvoicesAPIOperation();

            SendInvoiceSample sampleSendInvoice = new SendInvoiceSample();
            sampleSendInvoice.SendInvoiceAPIOperation();

            UpdateInvoiceSample sampleUpdateInvoice = new UpdateInvoiceSample();
            sampleUpdateInvoice.UpdateInvoiceAPIOperation();

            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }