microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

Method SiteTags_Delete_DoesDelete has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task SiteTags_Delete_DoesDelete()
        {
            // Arrange
            Random rnd = new Random();
Severity: Minor
Found in eFormSDK.Base.Tests/SiteTagsUTest.cs - About 1 hr to fix

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

                Microting.eForm.Infrastructure.Data.Entities.Case aCase2 = await testHelpers.CreateCase("case2UId", cl1,
                    c2_ca, "custom2",
                    c2_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                    site, 10, "caseType2", unit, c2_ua, 1, worker, Constants.WorkflowStates.Created);
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 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 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 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 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, worker4, rnd.Next(1, 255), rnd.Next(1, 255),
                    site4, 100, "caseType4", unit4, c4_ua, 1, worker4, Constants.WorkflowStates.Created);
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

                Microting.eForm.Infrastructure.Data.Entities.Case aCase1 = await testHelpers.CreateCase("case1UId", cl2,
                    c1_ca, "custom1",
                    c1_da, worker1, rnd.Next(1, 255), rnd.Next(1, 255),
                    site1, 1, "caseType1", unit1, c1_ua, 1, worker1, Constants.WorkflowStates.Created);
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 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 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 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 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 aCase4 = await testHelpers.CreateCase("case4UId", cl1,
                    c4_ca, "custom4",
                    c4_da, worker, rnd.Next(1, 255), rnd.Next(1, 255),
                    site, 100, "caseType4", unit, c4_ua, 1, worker, Constants.WorkflowStates.Created);
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 191..194
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 203..206
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 216..219
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 229..232
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 246..249
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 258..261
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 271..274
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 284..287
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 301..304
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 314..317
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 327..330
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 340..343
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 184..187
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 196..199
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 209..212
    eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 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 840..843
    eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 852..855
    eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 865..868
    eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 878..881

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 114.

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

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

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

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

    Refactorings

    Further Reading

    Severity
    Category
    Status
    Source
    Language