public void OnLoad_should_perform_binding_to_ISession() { var std = new StandardKernel(); Module.OnLoad(std); var bound = Module.Bindings.SingleOrDefault(b => b.Service == typeof(ISession)); Assert.IsNotNull(bound); }
protected NHibernateModule GetLoadedModule() { ClearDefaultFactory(); var module = new NHibernateModule(); var kernel = new StandardKernel(); module.OnLoad(kernel); return(module); }