コード例 #1
0
        public void TestDeleteInUse()
        {
            DifficultyLevel level = _dataGenerator.CreateDifficultyLevel();
            Variation variation = _dataGenerator.CreateVariation(difficultyLevel: level);

            IDifficultyLevelDao dao = new DifficultyLevelDao(_graphClient);
            Action action = ()=> dao.Delete(level);
            action.ShouldThrow<NodeInUseException>();
        }
コード例 #2
0
 public void TestDeleteNotInUse()
 {
     DifficultyLevel level = _dataGenerator.CreateDifficultyLevel();
     IDifficultyLevelDao dao = new DifficultyLevelDao(_graphClient);
     dao.Delete(level);
 }