public virtual async Task <List <DocumentSearchOutput> > SearchAsync(DocumentSearchInput input) { return(await RequestAsync <List <DocumentSearchOutput> >(nameof(SearchAsync), new ClientProxyRequestTypeValue { { typeof(DocumentSearchInput), input } })); }
public async Task ShouldSearchDocuments() { var settings = new DocumentSearchInput() { Query = "status=cancelled" }; var options = new ConnectionOption { Identifier = Identifier, Secret = Secret, BaseAddress = BaseAddress }; HttpResponseWithBody result = await(dynamic) VismaSign.DocumentSearch(settings, options, new CancellationToken()); Assert.StartsWith("{\"total\":", result.Body); }