private void LoadData() { using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0))) { _listOfPembayaranPiutang = _bll.GetAll(); GridListControlHelper.Refresh <PembayaranPiutangProduk>(this.gridList, _listOfPembayaranPiutang); } ResetButton(); }
public void GetAllTest() { var index = 0; var oList = _bll.GetAll(); var obj = oList[index]; Assert.IsNotNull(obj); Assert.AreEqual("10479db1-699e-40d0-b6f9-1f030792ca24", obj.pembayaran_piutang_id); Assert.AreEqual("c7b1ac7f-d201-474f-b018-1dc363d5d7f3", obj.customer_id); Assert.AreEqual("960a9111-a077-4e0e-a440-cef77293038a", obj.pengguna_id); Assert.AreEqual(DateTime.Today, obj.tanggal); Assert.AreEqual("tesss", obj.keterangan); Assert.AreEqual("BP-12345", obj.nota); Assert.IsTrue(obj.is_tunai); var customer = obj.Customer; Assert.AreEqual("c7b1ac7f-d201-474f-b018-1dc363d5d7f3", customer.customer_id); Assert.AreEqual("Swalayan Citrouli", customer.nama_customer); }