public void Attack(IDummy target)
    {
        if (DurabilityPoints <= 0)
        {
            throw new InvalidOperationException("Axe is broken.");
        }

        target.TakeAttack(AttackPoints);
        DurabilityPoints -= 1;
    }
 public void Attack(IDummy target)
 {
     target.TakeAttack(AttackPoints);
     DurabilityPoints -= 1;
 }