Exemplo n.º 1
0
        public async Task CreateAsyncByItemsShouldSucceed()
        {
            var deleteCount = await _mockRepo.DeleteAsync(x => x.MatchAll());

            var items = new List <MockDocument> {
                _mockDocumentWithId, _mockDocumentWithoutId
            };
            var count = await _mockRepo.CreateAsync(items);

            Assert.Equal(2, deleteCount);
            Assert.Equal(2, count);
        }