microting/eform-sdk-dotnet

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

Summary

Maintainability
F
3 wks
Test Coverage

Method Core_Case_CaseReadAll_Medium has 1948 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs - About 1 wk to fix

    File CoreTestCaseReadAllMedium.cs has 2040 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/CoreTestCaseReadAllMedium.cs - About 5 days 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/CoreTestCaseReadAllShort.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 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 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.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 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 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.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/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.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 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.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 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.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 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.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 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.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 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 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.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 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.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 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.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 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.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 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.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 45 locations. Consider refactoring.
      Open

                  List<Microting.eForm.Dto.Case> caseListRetractedC2SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC3SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC3SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC4SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC2SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC2SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC3SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC3SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC1SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC4SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC1SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC4SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC3SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC4SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC1SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC2SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC3SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC4SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC2SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC3SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC4SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Removed, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC1SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC4SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC1SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC3SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC1SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC2SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC2SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC2SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC2SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Created, "2000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC1SortDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedC4SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Retracted, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC3SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "3000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListC4SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-8), DateTime.UtcNow.AddDays(-6), Constants.WorkflowStates.Created, "4000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC1SortDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedDtUnitId = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRemovedC1SortDtDoneAt = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Removed, "1000",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 958..960
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

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

                  List<Microting.eForm.Dto.Case> caseListRetractedDtStatus = await sut.CaseReadAll(cl1.Id,
                      DateTime.UtcNow.AddDays(-10), DateTime.UtcNow.AddDays(-8), Constants.WorkflowStates.Retracted, "",
                      timeZoneInfo);
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 388..390
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 402..404
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 405..407
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 522..524
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 536..538
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 539..541
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 549..551
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 563..565
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 566..568
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 576..578
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 590..592
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 593..595
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 603..605
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 617..619
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 620..622
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 666..668
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 680..682
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 683..685
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 800..802
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 814..816
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 817..819
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 827..829
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 841..843
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 844..846
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 854..856
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 868..870
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 871..873
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 881..883
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 895..897
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 898..900
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 944..946
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 961..963
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1077..1079
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1091..1093
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1094..1096
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1104..1106
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1118..1120
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1121..1123
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1131..1133
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1145..1147
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1148..1150
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1158..1160
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1172..1174
      eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 1175..1177

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

      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