AuthorizeNet/sdk-dotnet

View on GitHub
AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs

Summary

Maintainability
F
6 days
Test Coverage

Method AllEnumTest has 261 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public void AllEnumTest()
        {

            foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum)))
Severity: Major
Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs - About 1 day to fix

    Method AllEnumTest has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
    Open

            [Test]
            public void AllEnumTest()
            {
    
                foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum)))
    Severity: Minor
    Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    File AllGeneratedEnumTest.cs has 293 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    namespace AuthorizeNet.Api.Controllers.Test
    {
        using System;
        using AuthorizeNet.Api.Contracts.V1;
        using NUnit.Framework;
    Severity: Minor
    Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs - About 3 hrs to fix

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(deviceActivationEnum)))
                  {
                      var aValue = anEnum.ToString();
                      deviceActivationEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(echeckTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      echeckTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionStatusEnum)))
                  {
                      var aValue = anEnum.ToString();
                      ARBSubscriptionStatusEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      messageTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(webCheckOutTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      webCheckOutTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(accountTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      accountTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(permissionsEnum)))
                  {
                      var aValue = anEnum.ToString();
                      permissionsEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(transactionTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      transactionTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ARBSubscriptionUnitEnum)))
                  {
                      var aValue = anEnum.ToString();
                      ARBSubscriptionUnitEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(settingNameEnum)))
                  {
                      var aValue = anEnum.ToString();
                      settingNameEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(authIndicatorEnum)))
                  {
                      var aValue = anEnum.ToString();
                      authIndicatorEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(paymentMethodEnum)))
                  {
                      var aValue = anEnum.ToString();
                      paymentMethodEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(bankAccountTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      bankAccountTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(splitTenderStatusEnum)))
                  {
                      var aValue = anEnum.ToString();
                      splitTenderStatusEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListOrderFieldEnum)))
                  {
                      var aValue = anEnum.ToString();
                      ARBGetSubscriptionListOrderFieldEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ARBGetSubscriptionListSearchTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      ARBGetSubscriptionListSearchTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(TransactionListOrderFieldEnum)))
                  {
                      var aValue = anEnum.ToString();
                      TransactionListOrderFieldEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(afdsTransactionEnum)))
                  {
                      var aValue = anEnum.ToString();
                      afdsTransactionEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(customerTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      customerTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(merchantInitTransReasonEnum)))
                  {
                      var aValue = anEnum.ToString();
                      merchantInitTransReasonEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType1)))
                  {
                      var aValue = anEnum.ToString();
                      ItemChoiceType1 enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(FDSFilterActionEnum)))
                  {
                      var aValue = anEnum.ToString();
                      FDSFilterActionEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(TransactionGroupStatusEnum)))
                  {
                      var aValue = anEnum.ToString();
                      TransactionGroupStatusEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileSearchTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      CustomerPaymentProfileSearchTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(EncryptionAlgorithmType)))
                  {
                      var aValue = anEnum.ToString();
                      EncryptionAlgorithmType enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(settlementStateEnum)))
                  {
                      var aValue = anEnum.ToString();
                      settlementStateEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(customerProfileTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      customerProfileTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(paymentMethodsTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      paymentMethodsTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(messageTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      messageTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(validationModeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      validationModeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(EncodingType)))
                  {
                      var aValue = anEnum.ToString();
                      EncodingType enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(transactionStatusEnum)))
                  {
                      var aValue = anEnum.ToString();
                      transactionStatusEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(ItemChoiceType)))
                  {
                      var aValue = anEnum.ToString();
                      ItemChoiceType enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(AUJobTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      AUJobTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(cardTypeEnum)))
                  {
                      var aValue = anEnum.ToString();
                      cardTypeEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(OperationType)))
                  {
                      var aValue = anEnum.ToString();
                      OperationType enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 311..317
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 37 locations. Consider refactoring.
      Open

                  foreach (var anEnum in Enum.GetValues(typeof(CustomerPaymentProfileOrderFieldEnum)))
                  {
                      var aValue = anEnum.ToString();
                      CustomerPaymentProfileOrderFieldEnum enumFromValue;
                      Assert.IsTrue(Enum.TryParse(aValue, out enumFromValue));
      Severity: Major
      Found in AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs and 36 other locations - About 50 mins to fix
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 40..46
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 48..54
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 56..62
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 64..70
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 72..78
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 80..86
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 88..94
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 96..102
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 104..110
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 112..118
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 120..126
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 128..134
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 136..142
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 144..150
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 152..158
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 160..166
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 168..174
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 176..182
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 184..190
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 192..198
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 199..205
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 207..213
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 215..221
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 223..229
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 231..237
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 239..245
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 247..253
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 255..261
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 263..269
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 271..277
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 279..285
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 287..293
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 295..301
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 303..309
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 319..325
      AuthorizeNETtest/Api/Controllers/Test/AllGeneratedEnumTest.cs on lines 327..333

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 82.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status