A case of primitive obsession. A real example in C#

from blog Just Some Code, | ↗ original
These days I was working with Stripe API to take payments. And I found a case of primitive obsession. Keep reading to learn how to get rid of it. Primitive obsession is when developers choose primitive types (strings, integers, decimals) to represent entities of the business domain. To solve this code smell, create classes to model the business...