public void TestIfScaleIsInUse()
        {
            DifficultyLevelScale     scale                   = _dataGenerator.CreateDifficultyLevelScale();
            DifficultyLevel          levelWithScale          = _dataGenerator.CreateDifficultyLevel(difficultyLevelScale: scale);
            IDifficultyLevelScaleDao difficultyLevelScaleDao = new DifficultyLevelScaleDao(_graphClient);

            Assert.IsTrue(difficultyLevelScaleDao.IsInUse(scale));
        }
        public void TestChangeDifficultyLevelToNewValue()
        {
            Route           route     = _dataGenerator.CreateRouteInCountry();
            DifficultyLevel level     = _dataGenerator.CreateDifficultyLevel();
            Variation       variation = _dataGenerator.CreateVariation(route: route, difficultyLevel: level);

            DifficultyLevel newLevel = _dataGenerator.CreateDifficultyLevel(name: "neues Level");

            IVariationDao variationDao = new VariationDao(_graphClient);

            variationDao.ChangeDifficultyLevel(variation, newLevel);

            IDifficultyLevelDao difficultyLevelDao = new DifficultyLevelDao(_graphClient);

            difficultyLevelDao.GetLevelOnVariation(variation).Id.Should().Be(newLevel.Id);
        }
        public void TestCreateAndGetAll()
        {
            DifficultyLevelDao   difficultyLevelDao = new DifficultyLevelDao(_graphClient);
            DifficultyLevelScale scale   = _dataGenerator.CreateDifficultyLevelScale();
            DifficultyLevel      created = _dataGenerator.CreateDifficultyLevel(difficultyLevelScale: scale);

            IList <DifficultyLevel> levelsInScale = difficultyLevelDao.GetAllIn(scale);

            Assert.AreEqual(1, levelsInScale.Count);
            Assert.AreEqual(created.Name, levelsInScale.First().Name);
            Assert.AreEqual(created.Id, levelsInScale.First().Id);
            Assert.AreEqual(created.Id, levelsInScale.First().Id);
            Assert.AreEqual(created.Score, levelsInScale.First().Score);
        }