Testing the context in asp.net mvc
Posted
by user252160
on Stack Overflow
See other posts from Stack Overflow
or by user252160
Published on 2010-03-31T11:44:53Z
Indexed on
2010/03/31
21:33 UTC
Read the original article
Hit count: 383
I got pretty experienced with testing controllers, my question here is though, aren't we supposed to test the data context as well, and how ? I mean, there are a lot of relationships and constraints coming from the DB that simply testing controllers does not cover.
On the other hand, testing against the DB is not considered a good practice - what then ? Simply testing without db.SubmitChanges() or what ?
© Stack Overflow or respective owner