Hi,

so after I created all my domain-entities and mappings (NHibernate) I
would like to
test if the mapping to the actual relational database works as
expected.

OK, so far no prob - just write a couple of unit-tests. But obviously
I should "reset" the db for each test, so that I always have a
consistent and known state.

So how would I do that? The naive way would be to drop everything and
have the SchemaExporter of NH recreate everything. That's what I did
so far - up until now. Now I have an existing relational model which I
must use, so I can't just drop and recreate everything.

Does anyone have a tip on how to achieve setting the db to a known
state for unit-testing? Ideally I would like to have some way which is
actually usable for various db-systems (currently I have to work with
Oracle, but most of the time I use MSSQL2005).

I stumbled across a tool called "ndbunit" - but the site seems down :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to