private async Task GetList_With_No_Params() { // GIVEN 3 custom fields await CreateSampleCustomField(); await CreateSampleCustomField(BacklogItemType.Bug); await CreateSampleCustomField(BacklogItemType.UserStory); // WHEN querying with no parameters var list = await _queryService.GetList(new CustomFieldListGetRequest()); // THEN // all 3 custom fields get returned Assert.Equal(3, list.TotalRecords); }
public Task <ListResponse <CustomFieldListGetResponse> > GetList([FromServices] ICustomFieldListQueryService service, [FromQuery] CustomFieldListGetRequest dto) => service.GetList(dto);