public async Task Find_Objects_in_Collection(string findExpression, int start, int limit, int expectedCount) { IObjectService service = new MongoService(_fixture.MongoClient, _fixture.Logger); var collectionName = "historicalbooks"; var findCriteria = new FindCriteria() { Start = start, Limit = limit, SortFieldName = "title", SortDirection = System.ComponentModel.ListSortDirection.Ascending }; var findResult = await service.FindAsync("bookstore", collectionName, findExpression, findCriteria); Assert.Equal(200, findResult.Status); SearchResults results = findResult.Value; Assert.Equal(expectedCount, results.Count); }