I am using linq to nhibernate on my project, and I'm writing unit tests using Mock and SQLLite. The domain object is mapped to the sql view using fluent nhibernate.
The problem is that this domain object uses the sql view has source, and this view has data from many tables, and only MsSQL knows that. I don't know how to Mock this.
How do I Unit test a sql view using Mock and SQLite?
»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
EDIT:
Sorry, my question wasn't very clear. Let me rephrase it.
I'm using nhibernate, and writing unit tests using SQLLite. In some cases my domain objects are mapped to views instead of tables, and so I have configured the fluent nhibernate mappings so that the corresponding tables are not generated in the SQLite database schema.
This works in the development environment because the views are created manually afterwards in a MsSQL database, but I can't test the corresponding repositories in unit tests because they use SQLite.
How do I Unit test a sql view using SQLite?