public void WillRecoverFromAnUnhandledException()
{
windsorContainer.Register(
Component.For<IOperationsEx>()
.Named("operations")
.AsWcfClient(new DefaultClientModel()
{
Endpoint = WcfEndpoint
.BoundTo(new NetTcpBinding { PortSharingEnabled = true })
.At("net.tcp://localhost/Operations/Ex")
})
);
var client = windsorContainer.Resolve<IOperationsEx>("operations");
try
{
client.ThrowException();
Assert.Fail("Should have raised an exception");
}
catch (Exception)
{
client.Backup(new Dictionary<string, object>());
}
}