/// <summary>
        /// 获取所有渠道
        /// </summary>
        /// <returns></returns>
        private IActionResult GetChannels()
        {
            var channels = _channelAppService.GetChannels();
            var json     = channels.Select(a => new SelectViewModel
            {
                Id   = a.Id,
                Text = a.Name
            });

            return(Json(json));
        }
Пример #2
0
        public async Task Test_GetChannels()
        {
            var output = await _channelAppService.GetChannels(new Abp.Application.Services.Dto.IdInput <long>(0));

            output.Items.Count.ShouldBe(7);
        }