ScenarioNetworkRefusal.off constructor

ScenarioNetworkRefusal.off(
  1. String method,
  2. Uri url
)

Nothing stated an answer and the network is ScenarioNetwork.off.

Implementation

factory ScenarioNetworkRefusal.off(String method, Uri url) =>
    ScenarioNetworkRefusal._(
      method: method,
      url: url,
      outcome: 'off',
      short: 'refused: the network is off for this scenario',
      rest:
          '$method $url was not made.\n'
          '\n'
          '${_answerIt(url)}'
          '\n'
          'Or record it once and commit what comes back:\n'
          '  fw run scenarios run --network=record\n'
          '\n'
          'Or let this scenario reach the network every time:\n'
          '  scenario(…, network: ScenarioNetwork.live, (s) async { … });',
    );