microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 114.

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

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

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

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

Refactorings

Further Reading

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

            Microting.eForm.Infrastructure.Data.Entities.Case 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 4 locations. Consider refactoring.
Open

            Microting.eForm.Infrastructure.Data.Entities.Case aCase1 = await testHelpers.CreateCase("case1UId", cl1,
                c1_ca, "custom1",
                c1_da, worker, rnd.Next(shortMinValue, shortmaxValue), rnd.Next(shortMinValue, shortmaxValue),
                site, 1, "caseType1", unit, c1_ua, 1, worker, Constants.WorkflowStates.Created);
Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 3 other locations - About 1 hr to fix
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1298..1301
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1769..1772
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2661..2664

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

        public async Task<List<Tag>> GetAllTags(bool includeRemoved)
        {
            string methodName = "Core.GetAllTags";
            try
            {
Severity: Major
Found in eFormCore/Core.cs and 1 other location - About 1 hr to fix
eFormCore/Core.cs on lines 4504..4517

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

            Microting.eForm.Infrastructure.Data.Entities.Case aCase1 = await testHelpers.CreateCase("case1UId", cl1,
                c1_ca, "custom1",
                c1_da, worker, rnd.Next(shortMinValue, shortmaxValue), rnd.Next(shortMinValue, shortmaxValue),
                site, 1, "caseType1", unit, c1_ua, 1, worker, Constants.WorkflowStates.Created);
Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 3 other locations - About 1 hr to fix
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 483..486
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1298..1301
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2661..2664

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

            Microting.eForm.Infrastructure.Data.Entities.Case aCase1 = await testHelpers.CreateCase("case1UId", cl1,
                c1_ca, "custom1",
                c1_da, worker, rnd.Next(shortMinValue, shortmaxValue), rnd.Next(shortMinValue, shortmaxValue),
                site, 1, "caseType1", unit, c1_ua, 1, worker, Constants.WorkflowStates.Created);
Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 3 other locations - About 1 hr to fix
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 483..486
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1769..1772
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2661..2664

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

        public async Task<List<SiteNameDto>> Advanced_SiteItemReadAll(bool includeRemoved)
        {
            string methodName = "Core.Advanced_SiteItemReadAll";
            try
            {
Severity: Major
Found in eFormCore/Core.cs and 1 other location - About 1 hr to fix
eFormCore/Core.cs on lines 3626..3639

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

            Microting.eForm.Infrastructure.Data.Entities.Case aCase2 = await testHelpers.CreateCase("case2UId", cl3,
                c2_ca, "custom2",
                c2_da, worker, rnd.Next(shortMinValue, shortmaxValue), rnd.Next(shortMinValue, shortmaxValue),
                site, 10, "caseType2", unit, c2_ua, 1, worker, Constants.WorkflowStates.Created);
Severity: Major
Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 3 other locations - About 1 hr to fix
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 483..486
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1298..1301
eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1769..1772

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

Method TemplateUpdateFieldIdsForColumns has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

        public async Task<bool> TemplateUpdateFieldIdsForColumns(int templateId, int? fieldId1, int? fieldId2,
            int? fieldId3, int? fieldId4, int? fieldId5, int? fieldId6, int? fieldId7, int? fieldId8, int? fieldId9,
            int? fieldId10)
Severity: Major
Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language