Beispiel #1
0
        public void GetByNameTest()
        {
            var name = "hard";

            var index = 1;
            var oList = _bll.GetByName(name);
            var obj   = oList[index];

            Assert.IsNotNull(obj);
            Assert.AreEqual("6ae85958-80c6-4f3a-bc01-53a715e25bf1", obj.golongan_id);
            Assert.AreEqual("Hardware new", obj.nama_golongan);
        }
        public void GetByNameTest()
        {
            var name = "la";

            var index = 1;
            var oList = _bll.GetByName(name);
            var obj   = oList[index];

            Assert.IsNotNull(obj);
            Assert.AreEqual("fd9d730e-ed74-4041-9b17-6dd4433e6bc5", obj.golongan_id);
            Assert.AreEqual("Lainnya", obj.nama_golongan);
            Assert.AreEqual(1, obj.diskon);
        }