protected override NuclearStorage Compose(IDocumentStrategy strategy) { var dev = AzureStorage.CreateConfigurationForDev(); WipeAzureAccount.Fast(s => s.StartsWith("test-views"), dev); return(dev.CreateNuclear(strategy)); }
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)); }); }
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)); }
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") }); }
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") }); }
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") }); }
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"); }) }); }