Unit Testing nHibernate Mappings -
i mapping table valued functions in nhibernate using hbm files. our table functions have been changing quite bit lately, want make sure our mapping files updated when these changes made. able unit test mapping files running function loads hbm query, adds parameters , executes query. if mapping file has column, misspelled column or wrong datatype, know wrong because query fail.
but query not fail if table valued function contains new column mapping file not? there way add tests?
you need data. in memory sqlite trick. on test, you'd insert item on database , read inmediatly. selected fields values should same inserted values.
Comments
Post a Comment