コード例 #1
0
        public async void TestDelete()
        {
            ConnectionFactory connectionFactory = new ConnectionFactory(Environment.Testing);
            ISkierDao         skierDao          = new SkierDao(connectionFactory);

            Skier skier = await InsertSkier(connectionFactory);

            Assert.NotNull(await skierDao.FindById(skier.Id));

            await skierDao.Delete(skier.Id);

            Assert.Null(await skierDao.FindById(skier.Id));
        }