protected void InitializeNHibernateAndIoC(string containerPath, DatabaseEngine databaseEngine, string databaseName)
 {
     InitializeNHibernateAndIoC(containerPath,
                                databaseEngine,
                                databaseName,
                                MappingInfo.FromAssemblyContaining <GuidEntityForTesting>(),
                                _ => { });
 }
        public void CanInitializeWithFluentInterfaceAndContainerInstance()
        {
            var mappingInfo = MappingInfo.FromAssemblyContaining <GuidEntityForTesting>();

            IWindsorContainer container = new WindsorContainer();

            container.AddFacility(
                new NHUnitOfWorkFacility(new NHUnitOfWorkFacilityConfig(Assembly.GetAssembly(typeof(GuidEntityForTesting)))));

            Initialize(mappingInfo, null).AndIoC(container);

            Assert.AreSame(container, CurrentContext.Container);
        }