public void TestDeleteNotInUse() { DifficultyLevel level = _dataGenerator.CreateDifficultyLevel(); IDifficultyLevelDao dao = new DifficultyLevelDao(_graphClient); dao.Delete(level); }
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>(); }