コード例 #1
0
        public void SetUp()
        {
            DatabaseDriver.Bootstrap(true);

            container = DatabaseDriver.ContainerWithDatabase();
            source    = container.GetInstance <IConfigurationSource>();
        }
コード例 #2
0
        public void SetUp()
        {
            SchemaWriter.RemovePersistedConfiguration();

            DatabaseDriver.Bootstrap(true);

            container = DatabaseDriver.ContainerWithDatabase();
            source    = container.GetInstance <IConfigurationSource>();
        }
コード例 #3
0
        public void SetUp()
        {
            DatabaseDriver.Bootstrap(true);

            container = DatabaseDriver.ContainerWithDatabase();
            container.Configure(x =>
            {
                x.For <Func <IRepository, string, Site> >()
                .Use((r, text) => r.FindBy <Site>(s => s.Name == text));
            });

            repository = container.GetInstance <IRepository>();
        }
コード例 #4
0
        public override void SetUp(ITestContext context)
        {
            DatabaseDriver.Bootstrap(true);
            _container = DatabaseDriver.ContainerWithDatabase();
            _container.Configure(x =>
            {
                x.AddRegistry(new FastPackRegistry());
                x.For <IObjectConverter>().Use <ObjectConverter>();
            });

            FubuApplication.For <FubuRegistry>().StructureMap(() => _container).Bootstrap();

            _boundary = _container.GetInstance <ITransactionBoundary>();
            _boundary.Start();
            _repository = _container.GetInstance <IRepository>();
        }
コード例 #5
0
        public void SetUp()
        {
            DatabaseDriver.Bootstrap(true);

            container = DatabaseDriver.ContainerWithDatabase();
        }
 public void SetUp()
 {
     DatabaseDriver.Bootstrap(true);
 }