microting/eform-sdk-dotnet

View on GitHub
eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs

Summary

Maintainability
F
1 wk
Test Coverage

Method Core_Case_CaseReadAll_Short has 733 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task Core_Case_CaseReadAll_Short()
        {
            // Arrance

Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs - About 3 days to fix

    File CoreTestCaseReadAllShort.cs has 825 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    Severity: Major
    Found in eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs - About 1 day to fix

      Identical blocks of code found in 7 locations. Consider refactoring.
      Open

              public override async Task DoSetup()
              {
                  #region Setup SettingsTableContent
      
                  DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
      eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
      eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
      eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
      eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

      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 369.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase3 = await testHelpers.CreateCase("case3UId", cl1,
                      c3_ca, "custom3",
                      c3_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 15, "caseType3", unit, c3_ua, 1, worker, Constants.WorkflowStates.Created);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase1Retracted = await testHelpers.CreateCase("case1UId",
                      cl1, c1Retracted_ca, "custom1",
                      c1Retracted_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 1, "caseType1", unit, c1Retracted_ua, 1, worker, Constants.WorkflowStates.Retracted);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase1Removed = await testHelpers.CreateCase("case1UId",
                      cl1, c1Removed_ca, "custom1",
                      c1Removed_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 1, "caseType1", unit, c1Removed_ua, 1, worker, Constants.WorkflowStates.Removed);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase2Retracted = await testHelpers.CreateCase("case2UId",
                      cl1, c2Retracted_ca, "custom2",
                      c2Retracted_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 10, "caseType2", unit, c2Retracted_ua, 1, worker, Constants.WorkflowStates.Retracted);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase3Retracted = await testHelpers.CreateCase("case3UId",
                      cl1, c3Retracted_ca, "custom3",
                      c3Retracted_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 15, "caseType3", unit, c3Retracted_ua, 1, worker, Constants.WorkflowStates.Retracted);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase2 = await testHelpers.CreateCase("case2UId", cl1,
                      c2_ca, "custom2",
                      c2_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 10, "caseType2", unit, c2_ua, 1, worker, Constants.WorkflowStates.Created);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase4 = await testHelpers.CreateCase("case4UId", cl1,
                      c4_ca, "custom4",
                      c4_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 100, "caseType4", unit, c4_ua, 1, worker, Constants.WorkflowStates.Created);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase2Removed = await testHelpers.CreateCase("case2UId",
                      cl1, c2Removed_ca, "custom2",
                      c2Removed_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 10, "caseType2", unit, c2Removed_ua, 1, worker, Constants.WorkflowStates.Removed);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase4Retracted = await testHelpers.CreateCase("case4UId",
                      cl1, c4Retracted_ca, "custom4",
                      c4Retracted_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 100, "caseType4", unit, c4Retracted_ua, 1, worker, Constants.WorkflowStates.Retracted);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase4Removed = await testHelpers.CreateCase("case4UId",
                      cl1, c4Removed_ca, "custom4",
                      c4Removed_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 100, "caseType4", unit, c4Removed_ua, 1, worker, Constants.WorkflowStates.Removed);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase3Removed = await testHelpers.CreateCase("case3UId",
                      cl1, c3Removed_ca, "custom3",
                      c3Removed_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 15, "caseType3", unit, c3Removed_ua, 1, worker, Constants.WorkflowStates.Removed);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 32 locations. Consider refactoring.
      Open

                  Microting.eForm.Infrastructure.Data.Entities.Case aCase1 = await testHelpers.CreateCase("case1UId", cl1,
                      c1_ca, "custom1",
                      c1_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                      site, 1, "caseType1", unit, c1_ua, 1, worker, Constants.WorkflowStates.Created);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 222..225
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 239..242
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 251..254
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 264..267
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 277..280
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 294..297
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 307..310
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 320..323
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 333..336
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 600..603
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 612..615
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 625..628
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 638..641
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 840..843
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
      eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

      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 114.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC3SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC3SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC3SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC2SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC4SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC2SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC1SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC2SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC4SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC1SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC4SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 508..509
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594

      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 77.

      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 15 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListC1SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 378..379
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 391..392
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 393..394
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 521..522
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 523..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 532..533
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 545..546
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 547..548
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 556..557
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 569..570
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 571..572
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 580..581
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 593..594
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 595..596

      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 77.

      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