public ExecuteTradeIntegrationTests()
{
var broker = new TestBroker();
_channel = broker.OpenChannel().Result;
_heartbeatStream = _channel.RealmProxy.Services.GetSubject<dynamic>("status")
.Publish()
.RefCount();
_executionServiceInstance = _heartbeatStream
.Where(hb => hb.Type == ServiceTypes.Execution)
.Select(hb => hb.Instance)
.Take(1)
.Timeout(ResponseTimeout)
.ToTask()
.Result;
_timeoutCancellationTokenSource = new CancellationTokenSource();
}