public void TestTampilDetailRaporBenar()
        {
            int   id     = 1;
            RAPOR result = aDAO.Detail(id);

            Assert.IsNotNull(result);
        }
Example #2
0
        public void TestMethodDetail3()
        {
            int   id     = 01;
            RAPOR result = rap.detail(id);

            Assert.IsNotNull(result);
        }
        public void TestTampilDetailRaporSalah()
        {
            int   id           = 0;
            RAPOR expectResult = null;
            RAPOR result       = aDAO.Detail(id);

            Assert.AreEqual(expectResult, result);
        }
        [TestMethod]//oktes+db
        public void TesDeleteRaporbenar()
        {
            RAPOR det = aDAO.Detail(17);

            Assert.IsNotNull(det);
            bool isPermanent = false;
            var  a           = aDAO.Delete(17, false);
        }
Example #5
0
        public void TestMethodDetail()
        {
            int   id           = 0;
            RAPOR expectResult = null;
            RAPOR result       = rap.detail(id);

            Assert.AreEqual(expectResult, result);
        }
        [TestMethod]//oktes+db
        public void TesTambahRaporbenar()
        {
            RAPOR det = new RAPOR();

            det.JUMLAH = 80;
            int a = aDAO.Add(det);

            Assert.IsNotNull(a);
        }
        [TestMethod]//oktess+db
        public void TesEditRaporSalah()
        {
            RAPOR det = aDAO.Detail(0);

            Assert.IsNotNull(det);
            det.JUMLAH = 80;
            var a = aDAO.Edit(0, det);

            Assert.AreEqual(0, a);
        }
        [TestMethod]//oktess+db
        public void TesEditRaporbenar()
        {
            RAPOR det = aDAO.Detail(2);

            Assert.IsNotNull(det);
            det.JUMLAH = 80;
            var a = aDAO.Edit(2, det);

            Assert.AreEqual(1, a);
        }
Example #9
0
        public void TestMethodTambah()
        {
            RAPOR rapor = new RAPOR();

            rapor.ID_RAPOR = 1;
            int a = rap.add(rapor);


            Assert.IsNotNull(a);
        }
Example #10
0
        [TestMethod]//oktess+db
        public void TesEditRaporSalah2()
        {
            RAPOR det = aDAO.Detail(0);

            Assert.IsNotNull(det);
            det.ID_KARYAWAN = 1;

            var a = aDAO.Edit(0, det);

            Assert.AreEqual(-1, a);
        }
Example #11
0
        [TestMethod]//okpass+db
        public void TesTambahRaporGagal()
        {
            RAPOR det = new RAPOR();

            det.JUMLAH = 80;
            int a = aDAO.Add(det);

            Trace.WriteLine(det.ID_KARYAWAN);
            Trace.WriteLine(det.ID_PENILAI);
            Assert.IsNotNull(a);
        }