public async Task <ExchangeOrderResult> GetOrderDetails(string orderId) { // if this is simulated, change the status of the simualte order & send back if (_exchangeApi.Simulated) { _simulatedOrderResult.Result = ExchangeAPIOrderResult.Filled; } return(_exchangeApi.Simulated ? _simulatedOrderResult : await _exchangeApi.GetOrderDetailsAsync(orderId)); }