Пример #1
0
 public void Delete_Sale_From_Database()
 {
     CreateTestSale();
     SaleLogic logic = new SaleLogic();
     logic.AddSale(testSale,testDetails);
     logic.DeleteSale(testSale);
 }
Пример #2
0
        public void Delete_Detail_From_Sale()
        {
            ItemLogic itemlogic = new ItemLogic();
            Item item = itemlogic.GetItemByID(1);

            SaleLogic logic = new SaleLogic();
            decimal total = logic.CalculateSaleTotal(testSale, testDetails);
            logic.AddSale(testSale, testDetails);
            logic.DeleteDetailFromSale(testSale, item, detail);
        }
Пример #3
0
 public void Insert_Sale_To_Database()
 {
     CreateTestSale();
     SaleLogic logic = new SaleLogic();
     logic.AddSale(testSale, testDetails);
 }