protected override void Given()
        {
            base.Given();

            _Config = NHibConfig.Create()
                .ServerIs("localhost")
                .DatabaseNameIs("CodeTime")
                .RegisterMappings(Assembly.GetAssembly(typeof(ProjectMap)))
                .Build();
        }
Beispiel #2
0
        protected NHibContext()
        {
            _container = new UnityContainer();
            _container.RegisterInstance(_container);

            _config = NHibConfig.Create()
                .DatabaseNameIs("Praetorian")
                .ServerIs("Lubu\\SQLEXPRESS2")
                .RegisterMappings(Assembly.GetAssembly(typeof(NHibEventRepository)))
                .Build();

            Given();
            When();
        }
Beispiel #3
0
 public NHibMessageLog(INHibConfig config)
 {
     _config = config;
 }
 public NHibEventRepository(INHibConfig config)
 {
     _config = config;
 }