示例#1
0
        public async Task GetAll()
        {
            var result = await _service.GetAll();

            Assert.NotNull(result);
            Assert.NotEmpty(result.Items);
            Assert.True(result.TotalCount > 0);
            Assert.Equal(result.TotalCount, result.Items.Count);
        }
示例#2
0
        public async Task <mds::GetAllReadOnlyEntityResponse> GetAll([FromQuery] mds::GetAllRequest request)
        {
            _logger.LogInformation("Executing {Action} {Message}", nameof(GetAll), request);

            if (_interceptor != null)
            {
                await _interceptor.Handle(request).ConfigureAwait(false);
            }

            return(await _service.GetAll(request).ConfigureAwait(false));
        }
示例#3
0
 public Task <GetAllReadOnlyEntityResponse> GetAll([FromQuery] GetAllRequest __request)
 {
     return(_service.GetAll(__request));
 }