private async Task QueryApplicationsAsync()
        {
            Skip.If(!_fixture.RegistrationOk);
            foreach (var application in _applicationTestSet)
            {
                var response = await _applicationsDatabase.QueryApplicationsAsync(null, null, 0, null, null, QueryApplicationState.Any);

                Assert.NotNull(response);
            }
        }
        public async Task <QueryApplicationsResponseApiModel> QueryApplicationsAsync(
            [FromBody] QueryApplicationsApiModel query,
            [FromQuery] string nextPageLink,
            [FromQuery] int?pageSize)
        {
            if (query == null)
            {
                // query all
                query = new QueryApplicationsApiModel(null, null, 0, null, null, null);
            }
            var result = await _applicationDatabase.QueryApplicationsAsync(
                query.ApplicationName,
                query.ApplicationUri,
                (uint)query.ApplicationType,
                query.ProductUri,
                query.ServerCapabilities,
                (Types.QueryApplicationState?) query.ApplicationState,
                nextPageLink,
                pageSize);

            return(new QueryApplicationsResponseApiModel(result));
        }