public void UpdateRoleWithNull()
 {
     RolesController rc = new RolesController();
     DataContext db = new DataContext();
     rc.UpdateRole(null);
 }
        public void UpdateRole()
        {
            RolesController rc = new RolesController();
            DataContext db = new DataContext();
            tbl_Roles r = new tbl_Roles();
            {
                r.RoleId = 2;
                r.RoleName = "Tester";

            }
            rc.UpdateRole(r);
            tbl_Roles FinalRole = db.tbl_Roles.Find(2);
            Assert.AreEqual("Tester",FinalRole.RoleName);
            Assert.AreEqual(2,FinalRole.RoleId);
        }