コード例 #1
0
        public async Task DeleteTest()
        {
            var raceDataId = await RaceDataDao.InsertGetIdAsync(new RaceData
            {
                RaceId        = (await RaceDao.FindAllAsync()).First().Id,
                EventDateTime = DateTime.Now,
                EventTypeId   = (await EventTypeDao.FindAllAsync()).First().Id
            });

            await RaceDataDao.DeleteAsync(raceDataId.Value);

            Assert.IsNull(await RaceDataDao.FindByIdAsync(raceDataId.Value));
        }
コード例 #2
0
 public async Task FindAllAsync() => Assert.AreEqual(9, (await EventTypeDao.FindAllAsync()).Count());