private void LoadData() { using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0))) { _listOfSupplier = _bll.GetAll(); } ResetButton(); }
private void LoadData() { using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0))) { _listOfSupplier = _bll.GetAll(); GridListControlHelper.Refresh <Supplier>(this.gridList, _listOfSupplier); } ResetButton(); }
public void GetAllTest() { var index = 1; var oList = _bll.GetAll(); var obj = oList[index]; Assert.IsNotNull(obj); Assert.AreEqual("7859f705-6b0f-4c06-9bd0-e9f5f7b87414", obj.supplier_id); Assert.AreEqual("Sigma Computer", obj.nama_supplier); Assert.AreEqual("Yogyakarta", obj.alamat); Assert.AreEqual("Andi", obj.kontak); Assert.AreEqual("", obj.telepon); Assert.AreEqual(1000000, obj.total_hutang); Assert.AreEqual(600000, obj.total_pembayaran_hutang); }
public void GetAllTest() { var index = 1; var oList = _bll.GetAll(); var obj = oList[index]; Assert.IsNotNull(obj); Assert.AreEqual("cc793c38-f5d0-408e-bb1a-1b98953340b6", obj.supplier_id); Assert.AreEqual("Aneka Komputer", obj.nama_supplier); Assert.AreEqual("Solo", obj.alamat); Assert.AreEqual("", obj.kontak); Assert.AreEqual("", obj.telepon); Assert.AreEqual(470000, obj.total_hutang); Assert.AreEqual(0, obj.total_pembayaran_hutang); }