public async Task <IReadOnlyList <JsonAvailableRestCall> > GetAvailableRestCalls() { var exchange = StructuredHttpExchange.Options(""); IReadOnlyList <JsonAvailableRestCall> result = await ProcessCollectionRequest(exchange, o => JsonParsers.ValuesToObjects(o, JsonAvailableRestCall.FromToken)); return(result); }
public void Options_UnitTest() { String relativeRoute = default(String); StructuredHttpExchange _retVal = default(StructuredHttpExchange); ExecuteMethod( () => { return(GetInstance()); }, instance => { relativeRoute = default(String); //No Constructor Options_PreCondition(ref instance, ref relativeRoute); }, instance => { _retVal = StructuredHttpExchange.Options(relativeRoute); }, instance => { Options_PostValidate(instance, relativeRoute, _retVal); }); }