Exemple #1
0
        public void QuoteIndexTest()
        {
            //Arrange
            QuoteController quoteController = new QuoteController();

            //Act
            ActionResult result = quoteController.Create() as ActionResult;

            //Assert
            Assert.IsNotNull(result);
        }
 private void btnAddProduct_Click(object sender, EventArgs e)
 {
     if (quote == null)
     {
         quote = quoteController.Create(selectedCustomer, DateTime.Today.AddDays(15));
     }
     subProductForTransactionController.Create(selectedSubProduct, quote);
     LoadQuoteItems();
     txtProduct.Text = string.Empty;
     txtProduct.Focus();
 }