예제 #1
0
        private void LoadData()
        {
            using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
            {
                _listOfSupplier = _bll.GetAll();
            }

            ResetButton();
        }
예제 #2
0
        private void LoadData()
        {
            using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
            {
                _listOfSupplier = _bll.GetAll();

                GridListControlHelper.Refresh <Supplier>(this.gridList, _listOfSupplier);
            }

            ResetButton();
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }