示例#1
0
        public async override Task TestUpdateAsync()
        {
            using (var transaction = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
            {
                Country update = await countryDao.FindByIdAsync(3);

                update.Name = "TestUpdate";

                Assert.IsTrue(await countryDao.UpdateAsync(update));
                Country test = await countryDao.FindByIdAsync(update.CountryId);

                Assert.IsTrue(test.Equals(update));
            }
        }