Its not database code though. "Orders over 100$ should be marked as vip" is domain logic.
Database code like interactions with database, connection pools, primary/secondary switching ect yes they should be tested with a database.
Its not database code though. "Orders over 100$ should be marked as vip" is domain logic.
Database code like interactions with database, connection pools, primary/secondary switching ect yes they should be tested with a database.