예제 #1
0
        public async Task CanUpdateIncrementAsync()
        {
            Collection.Add(_statistics);
            await _repository.UpdateIncrementAsync(x => x.Id == _statistics.Id, s => s.ViewsAmount, 1);

            Assert.Equal(101, Collection[0].ViewsAmount);
        }