Ejemplo n.º 1
0
 public SearchTests()
 {
     _invoiceHelper = new InvoiceHelper();
     _invoiceHelper.CreateTestData();
     Thread.Sleep(3000); // Need to wait for entities to be indexed
     _itemHelper = new ItemHelper();
 }
Ejemplo n.º 2
0
 public SearchTests()
 {
     _invoiceHelper = new InvoiceHelper();
     _invoiceHelper.CreateTestData();
     Thread.Sleep(3000); // Need to wait for entities to be indexed
     _itemHelper = new ItemHelper();
 }
Ejemplo n.º 3
0
        private void CreateInvoices()
        {
            var proxy  = new InvoiceProxy();
            var helper = new InvoiceHelper();

            helper.CreateTestData();

            //Create sales.
            _DeletedSaleTranId    = (int)helper.CreateASingleInvoice(amount: 20.00M).TransactionId;
            _NotDeletedSaleTranId = (int)helper.CreateASingleInvoice(amount: 20.00M).TransactionId;

            //Delete only first sale.
            proxy.DeleteInvoice(_DeletedSaleTranId);

            //Create purchases.
            _DeletedPurchaseTranId    = (int)helper.CreateASingleInvoice("P", 20.00M).TransactionId;
            _NotDeletedPurchaseTranId = (int)helper.CreateASingleInvoice("P", 20.00M).TransactionId;

            //Delete only first purchases.
            proxy.DeleteInvoice(_DeletedPurchaseTranId);
        }