templates/protractor.mock.js
function selectScenario(data, scenario) {
        return _execute('PUT', '/mocks', {
            identifier: _getIdentifier(data),
            scenario: scenario || null
        }, 'Could not select scenario [' + scenario + ']');
    }
function selectScenario(data, scenario) {
        return _execute('PUT', '/mocks', {
            identifier: _getIdentifier(data),
            scenario: scenario || null
        }, 'Could not select scenario [' + scenario + ']');
    }
function selectScenario ( data , scenario ) { return _execute ( 'PUT' , '/mocks' , { identifier : _getIdentifier ( data ) , scenario : scenario || null } , 'Could not select scenario [' + scenario + ']' ) ; }
Selects the given scenario for the mock matching the identifier.

@param {Object | String} data The data object containing all the information for an expression or the name of the mock.
@param scenario The scenario that is selected to be returned when the api is called.
@return {Promise} the promise.
Selects the given scenario for the mock matching the identifier .