Beispiel #1
0
        public void GetExplorations_UserInfoWithRole_NotEmptyExplorations()
        {
            var user_info = new UserInfo()
            {
                Id    = 1,
                Roles = new List <string> {
                    ROLE
                }
            };

            var result = _taskCreateService.GetExplorations(user_info, PRODUCT_CODE, _taskCode);

            result.Should().NotBeNullOrEmpty();
        }
Beispiel #2
0
        public IActionResult GetExploration(string information_system_code, string task_code)
        {
            _logger.LogDebug($"GetExploration {nameof(information_system_code)} : {information_system_code}, {nameof(task_code)} : {task_code}");

            var items = _taskCreateService.GetExplorations(_userInfoService.GetUserInfo(), information_system_code, task_code).Select(x => new
            {
                id   = x.Id,
                name = x.Name
            }).ToList();

            return(new JsonResult(items));
        }