public void Should_configure_data_access()
{
Application.ServiceLocatorIs(CreateServiceLocator())
.Load(
DataConfiguration.Default(BuildNHibernateConfiguration()),
LoggingIsNotUsedConfiguration.Default(),
ValidationIsNotUsedConfiguration.Default()
);
Assert.That(ServiceLocator.Resolve<INHibernateConfiguration>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<IUnitOfWorkFactory>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<ISessionFactory>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<IUnitOfWork>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<INHibernateRepository<DomainEntity>>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<IRepository<DomainEntity>>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<IRepository>(), Is.Not.Null);
Assert.That(ServiceLocator.Resolve<INHibernateRepository<DomainEntity>>(), Is.Not.Null);
}