public void Invoice_Fetch()
        {
            var invoice = BusinessHelper.CreateInvoiceAndLogon(
                InvoiceTestsWithRoleReview.UserName,
                InvoiceTestsWithRoleReview.UserPassword);

            Exception exception = null;

            try
            {
                InvoiceService.InvoiceFetch(invoice.InvoiceId);
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception != null, "Exception should not be null");
            Assert.IsTrue(exception.GetBaseException() is SecurityException);
        }
        public void Invoice_Edit()
        {
            var invoice = BusinessHelper.CreateInvoiceAndLogon(
                InvoiceTestsWithRoleContribute.UserName,
                InvoiceTestsWithRoleContribute.UserPassword);

            Exception exception = null;

            try
            {
                invoice = InvoiceService.InvoiceFetch(invoice.InvoiceId);

                invoice.Notes = DataHelper.RandomString(20);

                InvoiceService.InvoiceSave(invoice);
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception != null, "Exception should not be null");
            Assert.IsTrue(exception.GetBaseException() is SecurityException);
        }
        public void Invoice_Fetch_List()
        {
            BusinessHelper.CreateInvoiceAndLogon(
                InvoiceTestsWithRoleContribute.UserName,
                InvoiceTestsWithRoleContribute.UserPassword);

            BusinessHelper.CreateInvoiceAndLogon(
                InvoiceTestsWithRoleContribute.UserName,
                InvoiceTestsWithRoleContribute.UserPassword);

            Exception exception = null;

            try
            {
                InvoiceService.InvoiceFetchInfoList();
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception != null, "Exception should not be null");
            Assert.IsTrue(exception.GetBaseException() is SecurityException);
        }