Esempio n. 1
0
        public async Task UpdateAsync()
        {
            Book book = GetBook();

            book.Id = 7;
            _bookRepository.Attach(book);
            book.Title = "123";
            int len = await _bookRepository.UpdateAsync(book);

            Assert.Equal(1, len);
        }