private void LoadData()
        {
            using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
            {
                _listOfOperator = _bll.GetAll();

                IRoleBll roleBll = new RoleBll(_log);
                _listOfRole = roleBll.GetByStatus(true);
            }

            ResetButton();
        }
Exemple #2
0
        public void GetAllTest()
        {
            var index = 1;
            var oList = _bll.GetAll();
            var obj   = oList[index];

            Assert.IsNotNull(obj);
            Assert.AreEqual("b597508d-1369-4a05-9d51-c666eda42063", obj.pengguna_id);
            Assert.AreEqual("11dc1faf-2c66-4525-932d-a90e24da8987", obj.role_id);
            Assert.AreEqual("Andrian", obj.nama_pengguna);
            Assert.AreEqual("20b1ce8e61ee5b49320ef0a78c75521b", obj.pass_pengguna);
            Assert.IsFalse(obj.is_active);

            var role = obj.Role;

            Assert.AreEqual("11dc1faf-2c66-4525-932d-a90e24da8987", role.role_id);
            Assert.AreEqual("Administrator", role.nama_role);
        }