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); }
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)); }
public Task <GetAllReadOnlyEntityResponse> GetAll([FromQuery] GetAllRequest __request) { return(_service.GetAll(__request)); }