コード例 #1
0
        protected override NuclearStorage Compose(IDocumentStrategy strategy)
        {
            var dev = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-views"), dev);
            return(dev.CreateNuclear(strategy));
        }
コード例 #2
0
 public void Test()
 {
     new Engine_scenario_for_streaming_storage().TestConfiguration(cb =>
     {
         var account = AzureStorage.CreateConfigurationForDev();
         WipeAzureAccount.Fast(s => s.StartsWith("test-"), account);
         cb.Storage(m => m.StreamingIsInAzure(account));
     });
 }
コード例 #3
0
        protected override void EngineConfig(CqrsEngineBuilder b)
        {
            var account = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-"), account);

            b.Azure(m =>
            {
                m.AddAzureProcess(account, new[] { "test-incoming" }, c => c.QueueVisibility(1));
                m.AddAzureSender(account, "test-incoming", x => x.IdGeneratorForTests());
            });
            b.Storage(m => m.AtomicIsInAzure(account, DefaultWithCustomConfig));
        }
コード例 #4
0
        protected override Setup ConfigureComponents(IEnvelopeStreamer config)
        {
            TestSpeed = 7000;

            var dev = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-"), dev);
            return(new Setup
            {
                Store = dev.CreateNuclear(new TestStrategy()),
                Inbox = dev.CreateInbox("test-incoming", visibilityTimeout: TimeSpan.FromSeconds(1)),
                Sender = dev.CreateSimpleSender(config, "test-incoming")
            });
        }
コード例 #5
0
        protected override Given_Atomic_Scenarios.Setup ConfigureComponents(Envelope.IEnvelopeStreamer streamer)
        {
            TestSpeed = 10000;

            var dev = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-"), dev);
            return(new Setup
            {
                Store = dev.CreateNuclear(),
                Inbox = dev.CreateInbox("test-incoming", visibilityTimeout: TimeSpan.FromSeconds(1)),
                Sender = dev.CreateSimpleSender(streamer, "test-incoming")
            });
        }
コード例 #6
0
        protected override Given_Basic_Scenarios.Setup ConfigureComponents(IEnvelopeStreamer config)
        {
            // Azure dev is implemented via WS on top of SQL on top of FS.
            // this can be slow. And it will be
            TestSpeed = 7000;

            var dev = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-"), dev);
            return(new Setup
            {
                Store = dev.CreateNuclear(new TestStrategy()),
                Inbox = dev.CreateInbox("test-incoming", visibilityTimeout: TimeSpan.FromSeconds(1)),
                Sender = dev.CreateSimpleSender(config, "test-incoming")
            });
        }
コード例 #7
0
        protected override Setup ComposeComponents(IEnvelopeStreamer streamer)
        {
            // Azure dev is implemented via WS on top of SQL on top of FS.
            // this can be slow. And it will be
            TestSpeed = 7000;

            var dev = AzureStorage.CreateConfigurationForDev();

            WipeAzureAccount.Fast(s => s.StartsWith("test-"), dev);

            return(new Setup
            {
                Sender = dev.CreateSimpleSender(streamer, "test-incoming"),
                Inbox = dev.CreateInbox("test-incoming", visibilityTimeout: TimeSpan.FromMilliseconds(1)),
                Storage = dev.CreateNuclear(builder =>
                {
                    builder.FolderForSingleton("test-single");
                })
            });
        }