5 ms·
> It seems that unit testing database code would happen at the database layer: Its not database code though. "Orders over 100$ should be marked as vip" is doma
by dominotw 4y ago
> It seems that unit testing database code would happen at the database layer:
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.