Well actually NOTHING is designed to last any more, quality control is now handled by the buyer, this is because the company's have done away with quality control now the buyer is the quality control inspector.
Actually many electronics are designed for long life and high reliability. Heart pacemakers, most medical equipment, military hardware, most aspects of air travel and ground control, automobile control electronics, shipping, oil well and well logging, automobile traffic control, industrial surveillance equip., internet servers, mainframe computers, to name just a few categories. And most phones have fairly high reliability rates considering the operators and their environments.
Very little of the electronics world is repaired at the component level. However, most of the electronics groups listed above do have their defective units returned to the source for repair at a component level. The cost to discard the unit is cost prohibitive. What is usually of greater importance, are the results of the "autopsy" on the field returned part. Lord help the unlucky entity that is the source of the failure. Most customers have the ability to track the life history of the electronic products to the minute station by station as they are being built new, or in for repair.
My employer builds a lot of those categories of electronics worldwide. A separate autonomous division of our company does the autopsies.
It's not a pleasant experience to be on a conference call with the "customer" to discuss the autopsy findings. There are usually hi magnification photos and product cross sections that pin point the exact source of the problem.
There is also financial responsibility to consider for units that fail during the negotiated warranty period.
It's not nearly as casual as you may think. We're not talking your big screen TV, microwave oven, or most consumer electronics (like trains).
Just ask what the longest extended warranty period is available for purchase on your new electronic toy and you'll know when to start shopping for a replacement.
As far as I know, there aren't any extended warranties offered for toy trains, so that should give you a clue.