public void GetAllRolesTest() { var rc = new RoleController(true); var roles = rc.All(); roles.Should().BeOfType <List <Role> >(); }
public static List <Role> GetAllRoles() { try { return(RoleController.All()); } catch (Exception e) { return(new List <Role>()); } }