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