private static void OperationSpec(ApiSpec api, string httpMethod, int index, Action<OperationSpec> applyAssertions)
 {
     var operationSpec = api.Operations.Where(op => op.Method == httpMethod).ElementAt(index);
     applyAssertions(operationSpec);
 }
 private void OperationSpec(ApiSpec api, string httpMethod, Action<OperationSpec> applyAssertions)
 {
     var operationSpec = api.Operations.Single(op => op.Method == httpMethod);
     applyAssertions(operationSpec);
 }
 private void AssertApiOperationSpec(ApiSpec apiSpec, string httpMethod, Action<ApiOperationSpec> applyAssertions)
 {
     var operationSpec = apiSpec.operations.Single(op => op.httpMethod == httpMethod);
     applyAssertions(operationSpec);
 }