<commit_before>﻿using jab.Interfaces;
using NUnit.Framework;
using System.Linq;

namespace jab.example
{
    public class MyTestClass
        : tests.ApiBestPracticeTestBase
    {
        /// <summary>
        /// DELETE operations should always contain a ID parameter.
        /// </summary>
        /// <param name="apiOperation"></param>
        [TestCaseSource(nameof(DeleteOperations))]
        public void DeleteMethodsMustContainIdAsKeyParameter(IJabApiOperation apiOperation)
        {
            Assume.That(apiOperation.Method,
                Is.EqualTo(NSwag.SwaggerOperationMethod.Delete));
            Assert.That(
                apiOperation,
                Has.Property("Parameters").Property("Parameters").None.Property("Name").EqualTo("id"),
                    $"Must not pass ID parameter");
        }
    }
}<commit_msg>Formatting.<commit_after>﻿using jab.Interfaces;
using NUnit.Framework;
using System.Linq;
using jab.tests;

namespace jab.example
{
    public class MyTestClass
        : ApiBestPracticeTestBase
    {
        /// <summary>
        /// DELETE operations should always contain a ID parameter.
        /// </summary>
        /// <param name="apiOperation"></param>
        [TestCaseSource(nameof(DeleteOperations))]
        public void DeleteMethodsMustContainIdAsKeyParameter(IJabApiOperation apiOperation)
        {
            Assume.That(
                apiOperation.Method,
                Is.EqualTo(NSwag.SwaggerOperationMethod.Delete));
            Assert.That(
                apiOperation,
                Has.Property("Parameters").Property("Parameters").None.Property("Name").EqualTo("id"),
                    $"Must not pass ID parameter");
        }
    }
}
{'fraction_non_alphanumeric': 0.11085180863477247, 'fraction_numerical': 0.0, 'mean_word_length': 2.205607476635514, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4415429', 'n_tokens_mistral': 446, 'n_tokens_neox': 440, 'n_words': 81}