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

                GridListControlHelper.Refresh <Role>(this.gridList, _listOfRole);
            }

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

            Assert.IsNotNull(obj);
            Assert.AreEqual("c58ee40a-5ae2-4067-b6ad-8cae9c65913c", obj.role_id);
            Assert.AreEqual("Owner", obj.nama_role);
            Assert.IsTrue(obj.is_active);
        }