Beispiel #1
0
        public async Task AddPossibleDisciplineTest()
        {
            var disciplineId = await DisciplineDao.InsertGetIdAsync(new Discipline
            {
                DisciplineName = "TestDiscipline"
            });

            var skierId = (await SkierDao.FindAllAsync()).First().Id;
            await SkierDao.InsertPossibleDisciplineForSkier(skierId, disciplineId.Value);

            Assert.AreEqual(3, (await SkierDao.GetPossibleDisciplinesForSkier(skierId)).Count());
        }