예제 #1
0
        public void GetByIDTest()
        {
            var id  = "7859f705-6b0f-4c06-9bd0-e9f5f7b87414";
            var obj = _bll.GetByID(id);

            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);
        }
예제 #2
0
        public void GetByIDTest()
        {
            var id  = "cc793c38-f5d0-408e-bb1a-1b98953340b6";
            var obj = _bll.GetByID(id);

            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);
        }