public void TambahDataTest()
 {
     listData.Add(new Barang
     {
         Kode     = "0001",
         Nama     = "Buku",
         Quantity = 10,
         Harga    = 12000,
         Pajak    = "10"
     });
     daoBarang.TambahData(new Barang
     {
         Kode     = "0001",
         Nama     = "Buku",
         Quantity = 10,
         Harga    = 12000,
         Pajak    = "10"
     });
     Assert.AreEqual(listData.Count, daoBarang.listBarang.Count);
 }
 public void TambahDataTest()
 {
     listData.Add(new Barang
     {
         Kode  = "0001",
         Nama  = "Buku",
         Harga = 12000,
         Pajak = "10"
     });
     daoBarang.listData.Add(new Barang
     {
         Kode  = "0001",
         Nama  = "Buku",
         Harga = 12000,
         Pajak = "10"
     });
     //BarangDAOList barang = new BarangDAOList();
     daoBarang.TambahData(listData);
 }