private void LoadData(string supplierName) { using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0))) { _listOfSupplier = _bll.GetByName(supplierName); GridListControlHelper.Refresh <Supplier>(this.gridList, _listOfSupplier); } ResetButton(); }
public void GetByNameTest() { var name = "computer"; var index = 1; var oList = _bll.GetByName(name); 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 GetByNameTest() { var name = "kom"; var index = 0; var oList = _bll.GetByName(name); 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); }