remove repo dependencies from nhibernate repo test and refactor FindOneBy