private async Task Added_CustomField_Can_Be_Queried() { // GIVEN an empty DB // WHEN adding a new custom field var customFieldRef = await CreateSampleCustomField(); // THEN // The returned ID of the newly created entity gets returned Assert.NotNull(customFieldRef); // the entity appears in the DB var record = await _queryService.GetArray(new CustomFieldListGetRequest { Ids = new[] { customFieldRef.Id } }); Assert.Single(record); Assert.Equal(customFieldRef.Name, record.Single().Name); }
public Task <CustomFieldListGetResponse[]> GetList([FromServices] ICustomFieldQueryService service, [FromQuery] CustomFieldListGetRequest dto ) => service.GetArray(dto);