public void ExecutionExceptionsAreRethrown()
		{
			using (GetNewServer(port, path))
			using (var shard1 = new DocumentStore { Url = "http://localhost:8079" }.Initialize())
			using (var session = shard1.OpenSession())
			{
				var parallelShardAccessStrategy = new ParallelShardAccessStrategy();
				Assert.Throws<ApplicationException>(() => parallelShardAccessStrategy.Apply<object>(new[] {session.Advanced.DatabaseCommands}, (x, i) => { throw new ApplicationException(); }));
			}
		}
Beispiel #2
0
 public void ExecutionExceptionsAreRethrown()
 {
     using (GetNewServer())
         using (var shard1 = new DocumentStore {
             Url = "http://localhost:8079"
         }.Initialize())
             using (var session = shard1.OpenSession())
             {
                 var parallelShardAccessStrategy = new ParallelShardAccessStrategy();
                 Assert.Throws <ApplicationException>(() => parallelShardAccessStrategy.Apply <object>(new[] { shard1.DatabaseCommands }, new ShardRequestData(), (x, i) => { throw new ApplicationException(); }));
             }
 }