private void LoadData() { using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0))) { _listOfPembayaranHutang = _bll.GetAll(); GridListControlHelper.Refresh <PembayaranHutangProduk>(this.gridList, _listOfPembayaranHutang); } ResetButton(); }
public void GetAllTest() { var index = 0; var oList = _bll.GetAll(); var obj = oList[index]; Assert.IsNotNull(obj); Assert.AreEqual("d4e66a6c-c0b2-49e1-be4d-b33e7b1bd565", obj.pembayaran_hutang_produk_id); Assert.AreEqual("e6201c8e-74e3-467c-a463-c8ea1763668e", obj.supplier_id); Assert.AreEqual("00b5acfa-b533-454b-8dfd-e7881edd180f", obj.pengguna_id); Assert.AreEqual(new DateTime(2017, 1, 9), obj.tanggal); Assert.AreEqual("ket header", obj.keterangan); Assert.AreEqual("BB-123456", obj.nota); Assert.IsTrue(obj.is_tunai); var supplier = obj.Supplier; Assert.AreEqual("e6201c8e-74e3-467c-a463-c8ea1763668e", supplier.supplier_id); Assert.AreEqual("Pixel Computer", supplier.nama_supplier); }