Example #1
0
        public async Task GetAllRolesTest(string name)
        {
            var created = await _roleBusiness.CreateRole(new Role
            {
                Name        = name,
                Description = name,
                Permissions = new List <Permission>()
            });

            var roles = await _roleBusiness.GetAllRoles();

            Assert.NotEmpty(roles);
        }
Example #2
0
        public async Task <IActionResult> GetAllRoles()
        {
            var results = await _roleBusiness.GetAllRoles();

            return(Ok(CommonResponse.Success(results)));
        }