public Task <IReadOnlyCollection <Standard> > Execute( DocumentClient client, Configuration configuration, GetAllStandards request) { var collectionLink = UriFactory.CreateDocumentCollectionUri( configuration.DatabaseId, configuration.StandardsCollectionName); var feedOptions = new FeedOptions { EnableCrossPartitionQuery = true, MaxItemCount = -1 }; return(client.CreateDocumentQuery <Standard>(collectionLink, feedOptions) .Where(f => f.RecordStatusId == 2) .AsDocumentQuery() .FetchAll()); }
public IReadOnlyCollection <Standard> Execute( InMemoryDocumentStore inMemoryDocumentStore, GetAllStandards request) { return(inMemoryDocumentStore.Standards.All); }