microting/eform-sdk-dotnet

View on GitHub
eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs

Summary

Maintainability
F
1 wk
Test Coverage

File SqlControllerTestCase.cs has 1107 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
Severity: Major
Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 days to fix

    Method SQL_PostCase_CaseUpdateFieldValues has 294 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task SQL_PostCase_CaseUpdateFieldValues()
            {
                // Arrance
    
    
    Severity: Major
    Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 1 day to fix

      Method SQL_PostCase_CaseReadByMUId_Returns_ReturnCase has 119 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task SQL_PostCase_CaseReadByMUId_Returns_ReturnCase()
              {
                  // Arrance
      
      
      Severity: Major
      Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 4 hrs to fix

        Method SQL_PostCase_CaseFindCustomMatchs has 107 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public async Task SQL_PostCase_CaseFindCustomMatchs()
                {
                    // Arrance
        
        
        Severity: Major
        Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 4 hrs to fix

          Method SQL_PostCase_CaseReadFull has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public async Task SQL_PostCase_CaseReadFull()
                  {
                      // Arrance
          
          
          Severity: Major
          Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

            Method SQL_PostCase_CaseReadByCaseUId_Returns_lstDto has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    [Test]
                    public async Task SQL_PostCase_CaseReadByCaseUId_Returns_lstDto()
                    {
                        // Arrance
            
            
            Severity: Major
            Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

              Method SQL_PostCase_CaseReadByCaseId_Returns_cDto has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public async Task SQL_PostCase_CaseReadByCaseId_Returns_cDto()
                      {
                          // Arrance
              
              
              Severity: Major
              Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

                Method SQL_PostCase_CaseReadFirstId has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task SQL_PostCase_CaseReadFirstId()
                        {
                            // Arrance
                            Random rnd = new Random();
                Severity: Major
                Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

                  Class SqlControllerTestCase has 21 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                      [Parallelizable(ParallelScope.Fixtures)]
                      [TestFixture]
                      public class SqlControllerTestCase : DbTestFixture
                      {
                          private SqlController sut;
                  Severity: Minor
                  Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

                    Method SQL_Case_CaseUpdateCompleted_DoesCaseGetUpdated has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            [Test]
                            public async Task SQL_Case_CaseUpdateCompleted_DoesCaseGetUpdated()
                            {
                                MicrotingDbContext ldbContext = dbContextHelper.GetDbContext();
                                Random rnd = new Random();
                    Severity: Major
                    Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

                      Method SQL_Case_CaseRetract_DoesCaseGetRetracted has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              [Test]
                              public async Task SQL_Case_CaseRetract_DoesCaseGetRetracted()
                              {
                                  // Arrance
                                  Random rnd = new Random();

                        Method SQL_Case_CaseUpdateRetrieved_DoesCaseGetUpdated has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                [Test]
                                public async Task SQL_Case_CaseUpdateRetrieved_DoesCaseGetUpdated()
                                {
                                    // Arrance
                                    Random rnd = new Random();

                          Method SQL_Case_CaseDelete_DoesCaseRemoved has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test]
                                  public async Task SQL_Case_CaseDelete_DoesCaseRemoved()
                                  {
                                      // Arrance
                                      Random rnd = new Random();

                            Method SQL_Case_CaseDeleteResult_DoesMarkCaseRemoved has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    [Test]
                                    public async Task SQL_Case_CaseDeleteResult_DoesMarkCaseRemoved()
                                    {
                                        // Arrance
                                        Random rnd = new Random();

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase = await testHelpers.CreateCase("caseUId", cl1,
                                              DateTime.UtcNow, "custom", DateTime.UtcNow,
                                              worker, rnd.Next(1, 255), rnd.Next(1, 255),
                                              site, 66, "caseType", unit, DateTime.UtcNow, 1, worker, Constants.WorkflowStates.Created);
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 477..480
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1209..1212
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1536..1539
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1656..1659

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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase = await testHelpers.CreateCase("caseUId", cl1,
                                              DateTime.UtcNow, "custom", DateTime.UtcNow,
                                              worker, rnd.Next(1, 255), rnd.Next(1, 255),
                                              site, 66, "caseType", unit, DateTime.UtcNow, 1, worker, Constants.WorkflowStates.Created);
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 477..480
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1209..1212
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1417..1420
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1536..1539

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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase = await testHelpers.CreateCase("caseUId", cl1,
                                              DateTime.UtcNow, "custom", DateTime.UtcNow,
                                              worker, rnd.Next(1, 255), rnd.Next(1, 255),
                                              site, 66, "caseType", unit, DateTime.UtcNow, 1, worker, Constants.WorkflowStates.Created);
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 477..480
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1209..1212
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1417..1420
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1656..1659

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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase = await testHelpers.CreateCase("caseUId", cl1,
                                              DateTime.UtcNow, "custom", DateTime.UtcNow,
                                              worker, rnd.Next(1, 255), rnd.Next(1, 255),
                                              site, 66, "caseType", unit, DateTime.UtcNow, 1, worker, Constants.WorkflowStates.Created);
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 477..480
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1417..1420
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1536..1539
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1656..1659

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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase = await testHelpers.CreateCase("caseUId", cl1,
                                              DateTime.UtcNow, "custom", DateTime.UtcNow,
                                              worker, rnd.Next(1, 255), rnd.Next(1, 255),
                                              site, 100, "caseType", unit, DateTime.UtcNow, 1, worker, Constants.WorkflowStates.Created);
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1209..1212
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1417..1420
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1536..1539
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 1656..1659

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

                              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, 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 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 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 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 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 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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase =
                                              new Microting.eForm.Infrastructure.Data.Entities.Case
                                              {
                                                  MicrotingUid = rnd.Next(1, 255),
                                                  MicrotingCheckUid = rnd.Next(1, 255),
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 275..283
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 316..324

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

                              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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase =
                                              new Microting.eForm.Infrastructure.Data.Entities.Case
                                              {
                                                  MicrotingUid = rnd.Next(1, 255),
                                                  MicrotingCheckUid = rnd.Next(1, 255),
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 316..324
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 357..365

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

                              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

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

                                          Microting.eForm.Infrastructure.Data.Entities.Case aCase =
                                              new Microting.eForm.Infrastructure.Data.Entities.Case
                                              {
                                                  MicrotingUid = rnd.Next(1, 255),
                                                  MicrotingCheckUid = rnd.Next(1, 255),
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 275..283
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 357..365

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

                              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

                                          Worker worker1 = await testHelpers.CreateWorker(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(),
                                              Guid.NewGuid().ToString(), await testHelpers.GetRandomInt());
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 786..787
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 788..789
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 790..791

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

                              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

                                          Worker worker3 = await testHelpers.CreateWorker(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(),
                                              Guid.NewGuid().ToString(), await testHelpers.GetRandomInt());
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 784..785
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 786..787
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 790..791

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

                              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

                                          Worker worker2 = await testHelpers.CreateWorker(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(),
                                              Guid.NewGuid().ToString(), await testHelpers.GetRandomInt());
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 784..785
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 788..789
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 790..791

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

                              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

                                          Worker worker4 = await testHelpers.CreateWorker(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(),
                                              Guid.NewGuid().ToString(), await testHelpers.GetRandomInt());
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 784..785
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 786..787
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs on lines 788..789

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

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

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

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

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

                              Refactorings

                              Further Reading

                              There are no issues that match your filters.

                              Category
                              Status