예제 #1
0
        public async Task Count(string collectionName, string findExpression, int expectedCount)
        {
            IObjectService service = new MongoService(_fixture.MongoClient, _fixture.Logger);

            var distinctResult = await service.CountAsync("bookstore", collectionName, findExpression);

            Assert.Equal(200, distinctResult.Status);
            Assert.Equal(expectedCount, distinctResult.Value);
        }