Exemplo n.º 1
0
        public override TestingSiloHost CreateSiloHost()
        {
            var siloHost = new TestingSiloHost(
                new TestingSiloOptions
            {
                SiloConfigFile = new FileInfo("OrleansConfigurationForTesting.xml"),
                AdjustConfig   = config =>
                {
                    config.AddMemoryStorageProvider("PubSubStore");
                    config.Globals.RegisterStreamProvider <AzureQueueStreamProvider>(AQStreamProviderName);
                    config.Globals.ClientDropTimeout = TimeSpan.FromSeconds(5);
                }
            }, new TestingClientOptions
            {
                AdjustConfig = config =>
                {
                    config.RegisterStreamProvider <AzureQueueStreamProvider>(AQStreamProviderName,
                                                                             new Dictionary <string, string>());
                    config.Gateways.Add(new IPEndPoint(IPAddress.Loopback, 40001));
                }
            });

            runner = new ClientStreamTestRunner(siloHost);
            return(siloHost);
        }
Exemplo n.º 2
0
        public override TestingSiloHost CreateSiloHost()
        {
            var siloOptions = new TestingSiloOptions
            {
                StartFreshOrleans = true,
                StartSecondary    = false,
                SiloConfigFile    = new FileInfo("OrleansConfigurationForTesting.xml"),
                AdjustConfig      = config =>
                {
                    config.AddMemoryStorageProvider("PubSubStore");
                    config.Globals.RegisterStreamProvider <SimpleMessageStreamProvider>(SMSStreamProviderName);
                    config.Globals.ClientDropTimeout = TimeSpan.FromSeconds(5);
                }
            };

            var clientOptions = new TestingClientOptions
            {
                ClientConfigFile = new FileInfo("ClientConfigurationForTesting.xml"),
                AdjustConfig     = config =>
                {
                    config.RegisterStreamProvider <SimpleMessageStreamProvider>(SMSStreamProviderName);
                }
            };

            var testHost = new TestingSiloHost(siloOptions, clientOptions);

            runner = new ClientStreamTestRunner(testHost);

            return(testHost);
        }
Exemplo n.º 3
0
        public override TestingSiloHost CreateSiloHost()
        {
            var siloHost = new TestingSiloHost(new TestingSiloOptions
            {
                StartFreshOrleans = true,
                SiloConfigFile    = new FileInfo("OrleansConfigurationForTesting.xml"),
                AdjustConfig      = AdjustConfig
            }, new TestingClientOptions
            {
                AdjustConfig = AdjustConfig
            });

            runner = new ClientStreamTestRunner(siloHost);
            return(siloHost);
        }
Exemplo n.º 4
0
        public override async Task InitializeAsync()
        {
            await base.InitializeAsync();

            runner = new ClientStreamTestRunner(this.HostedCluster);
        }
Exemplo n.º 5
0
 public SQSClientStreamTests(ITestOutputHelper output)
 {
     this.output = output;
     runner = new ClientStreamTestRunner(this.HostedCluster);
 }
Exemplo n.º 6
0
 public SMSClientStreamTests(ITestOutputHelper output)
 {
     this.output = output;
     runner      = new ClientStreamTestRunner(this.HostedCluster);
 }
 public MemoryStreamProviderBatchedClientTests(Fixture fixture)
 {
     this.fixture = fixture;
     runner       = new ClientStreamTestRunner(fixture.HostedCluster);
 }
 public MemoryStreamProviderClientTests(Fixture fixture)
 {
     runner = new ClientStreamTestRunner(fixture.HostedCluster);
 }