public void GetProducts_UserInfoWithRole_NotEmptyProducts() { var user_info = new UserInfo() { Id = 1, Roles = new List <string> { ROLE } }; var result = _taskCreateService.GetProducts(user_info, _taskCode); result.Should().NotBeNullOrEmpty(); }
public IActionResult GetInformationSystems(string code) { _logger.LogDebug($"GetInformationSystems {nameof(code)} - {code}"); var items = _taskCreateService.GetProducts(_userInfoService.GetUserInfo(), code).Select(x => new { name = x.Name, code = x.Code }).ToList(); return(new JsonResult(items)); }