public void SetUp() { DatabaseDriver.Bootstrap(true); container = DatabaseDriver.ContainerWithDatabase(); source = container.GetInstance <IConfigurationSource>(); }
public void SetUp() { SchemaWriter.RemovePersistedConfiguration(); DatabaseDriver.Bootstrap(true); container = DatabaseDriver.ContainerWithDatabase(); source = container.GetInstance <IConfigurationSource>(); }
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>(); }
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>(); }
public void SetUp() { DatabaseDriver.Bootstrap(true); container = DatabaseDriver.ContainerWithDatabase(); }
public void SetUp() { DatabaseDriver.Bootstrap(true); }