Exemple #1
0
        public static void IsStarted(StatrContext context)
        {
            context.Application = new IntegrationApplication();
            context.Application.Initialize();
            context.Container = context.Application.Container;

            context.StorageEngine.DeleteAllBuckets();
        }
        public static void IsStarted(StatrContext context)
        {
            context.Application = new IntegrationApplication();
            context.Application.Initialize();
            context.Container = context.Application.Container;

            var storageEngineFactory = context.Container.Resolve<IStorageEngineFactory>();

            context.StorageEngine = storageEngineFactory.Create(@"c:\dev\tmp\integration-tests");
        }
Exemple #3
0
 public static void ShouldHaveBeenRead(StatrContext context)
 {
     Assert.That(context.Config, Is.Not.Null);
 }
Exemple #4
0
 public static void IsRead(StatrContext context)
 {
     var configurationService = context.Container.Resolve<IConfigRepository>();
     context.Config = configurationService.GetConfiguration();
 }