Ejemplo n.º 1
0
        private void LoadData()
        {
            using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
            {
                _listOfKaryawan = _bll.GetAll();

                IJabatanBll jabatanBll = new JabatanBll(MainProgram.isUseWebAPI, MainProgram.baseUrl, _log);
                _listOfJabatan = jabatanBll.GetAll();
            }

            ResetButton();
        }
Ejemplo n.º 2
0
        private void LoadData()
        {
            using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
            {
                _listOfKaryawan = _bll.GetAll();

                IJabatanBll jabatanBll = new JabatanBll(_log);
                _listOfJabatan = jabatanBll.GetAll();
            }

            ResetButton();
        }
Ejemplo n.º 3
0
        public void GetAllTest()
        {
            var index = 0;
            var oList = _bll.GetAll();
            var obj   = oList[index];

            Assert.IsNotNull(obj);
            Assert.AreEqual("72f28a4f-f364-423a-a09b-2b9571543fde", obj.karyawan_id);
            Assert.AreEqual("f1e4ea09-b777-4e56-bb90-db2bf9211468", obj.jabatan_id);
            Assert.AreEqual("Bangkit", obj.nama_karyawan);
            Assert.AreEqual("Klaten", obj.alamat);
            Assert.AreEqual("0813283838383", obj.telepon);
            Assert.AreEqual(200000, obj.gaji_pokok);
            Assert.IsTrue(obj.is_active);
            Assert.AreEqual(JenisGajian.Mingguan, obj.jenis_gajian);
            Assert.AreEqual(60000, obj.gaji_lembur);
            Assert.AreEqual(200000, obj.total_kasbon);
            Assert.AreEqual(50000, obj.total_pembayaran_kasbon);
        }