public static Goal ResolvingGoal(this GoalReplacement exception) { return(exception.model.Goals().SingleOrDefault(y => y.Identifier == exception.ResolvingGoalIdentifier)); }
public static Obstacle Obstacle(this GoalReplacement exception) { return(exception.model.Obstacles().SingleOrDefault(y => y.Identifier == exception.ResolvedObstacleIdentifier)); }
public void Add(GoalReplacement replacement) { this.goalRepository.Add(replacement); }