public void NoDiscountTest()
 {
     var orders = new OrderPenjualan();
     orders.AddItem(new OrderItem
                        {
                            Harga = 25000, JumlahBarang = 1, NamaBarang = "Diterjen"
                        });
     Assert.AreEqual(0, orders.Discount);
 }
 public void HasDiscountTest()
 {
     /* item 1 : 25000 * 2 =  50000
      * item 2 : 35000 * 4 = 140000
      * Total                190000
      * Discount 5%            9500
      * Total Order          180500
      */
     var orders = new OrderPenjualan();
     orders.AddItem(new OrderItem
     {
         Harga = 25000, JumlahBarang = 2, NamaBarang = "Diterjen"
     },
     new OrderItem
         {
             Harga = 35000, JumlahBarang = 4 , NamaBarang = "Sosis Daging Sapi"
         });
     Assert.AreEqual(9500, orders.Discount);
     Assert.AreEqual(180500, orders.TotalOrder);
 }