microting/eform-sdk-dotnet

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

Summary

Maintainability
F
1 wk
Test Coverage

File CoreTestCase.cs has 945 lines of code (exceeds 250 allowed). Consider refactoring.
Open

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

    Method Core_Case_CaseUpdate_ReturnsTrue has 288 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task Core_Case_CaseUpdate_ReturnsTrue()
            {
                // Arrange
    
    
    Severity: Major
    Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 day to fix

      Method Core_Case_CaseUpdateFieldValues has 239 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Class CoreTestCase has 24 methods (exceeds 20 allowed). Consider refactoring.
        Open

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

          Method Core_Case_CaseToJasperXml_ReturnsPath has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public async Task Core_Case_CaseToJasperXml_ReturnsPath()
                  {
                      // Arrange
          
          
          Severity: Minor
          Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

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

                    [Test]
                    public async Task Core_Case_CaseIdLookUp_returnsId()
                    {
                        // Arrange
            
            
            Severity: Minor
            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

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

                      [Test]
                      public async Task Core_Case_CaseRead_ReadsCase()
                      {
                          // Arrange
              
              
              Severity: Minor
              Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                Method Core_Case_CaseReadByCaseId_Returns_cDto has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task Core_Case_CaseReadByCaseId_Returns_cDto()
                        {
                            // Arrance
                
                
                Severity: Minor
                Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                  Method Core_Case_CaseLookupCaseId_Returns_cDto has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public async Task Core_Case_CaseLookupCaseId_Returns_cDto()
                          {
                              // Arrance
                  
                  
                  Severity: Minor
                  Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                    Method Core_Case_CaseLookupCaseUId_Returns_lstDto has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            [Test]
                            public async Task Core_Case_CaseLookupCaseUId_Returns_lstDto()
                            {
                                // Arrance
                    
                    
                    Severity: Minor
                    Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                      Method Core_Case_CaseLookupMUId_Returns_ReturnCase has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              [Test]
                              public async Task Core_Case_CaseLookupMUId_Returns_ReturnCase()
                              {
                                  // Arrance
                      
                      
                      Severity: Minor
                      Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                        Method Core_Case_CaseReadFirstId has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                [Test]
                                public async Task Core_Case_CaseReadFirstId()
                                {
                                    // Arrance
                        
                        
                        Severity: Minor
                        Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                          Method Core_Case_CaseDeleteResult_DoesMarkCaseRemoved has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test]
                                  public async Task Core_Case_CaseDeleteResult_DoesMarkCaseRemoved()
                                  {
                                      // Arrance
                                      Site site = new Site();
                          Severity: Minor
                          Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

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

                                    [Test]
                                    public async Task Core_Case_CaseLookupCaseId_Returns_cDto()
                                    {
                                        // Arrance
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 1 other location - About 5 hrs to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 174..227

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

                            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

                                    [Test]
                                    public async Task Core_Case_CaseReadByCaseId_Returns_cDto()
                                    {
                                        // Arrance
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 1 other location - About 5 hrs to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 1614..1667

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

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

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

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

                                        if (sut == null)
                                        {
                                            sut = new Core();
                                            sut.HandleCaseCreated += EventCaseCreated;
                                            sut.HandleCaseRetrived += EventCaseRetrived;
                            Severity: Minor
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 1 other location - About 55 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCaseCreate.cs on lines 24..34

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

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

                                    [Test]
                                    public async Task Core_Case_GetPdfPath_returnsPath()
                                    {
                                        // Arrange
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 2 other locations - About 55 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2688..2704
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2718..2734

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

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

                                    [Test]
                                    public async Task Core_Case_GetPicturePath_returnsPath()
                                    {
                                        // Arrange
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 2 other locations - About 55 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2688..2704
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2748..2764

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

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

                                    [Test]
                                    public async Task Core_Case_GetJasperPath_returnsPath()
                                    {
                                        // Arrange
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 2 other locations - About 55 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2718..2734
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2748..2764

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

                            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

                                    [Test]
                                    public async Task Core_Case_SetPicturePath_returnsTrue()
                                    {
                                        // Arrange
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 4 other locations - About 35 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2706..2716
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 4274..4286
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 4691..4703
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 5513..5523

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

                            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

                                    [Test]
                                    public async Task Core_Case_SetJasperPath_returnsTrue()
                                    {
                                        // Arrange
                            
                            
                            Severity: Major
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 4 other locations - About 35 mins to fix
                            eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs on lines 2736..2746
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 4274..4286
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 4691..4703
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 5513..5523

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

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

                                            {
                                                MicrotingUid = rnd.Next(shortMinValue, shortmaxValue),
                                                MicrotingCheckUid = rnd.Next(shortMinValue, shortmaxValue),
                                                WorkflowState = Constants.WorkflowStates.Created,
                                                CheckListId = cl.Id,
                            Severity: Minor
                            Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs and 1 other location - About 30 mins to fix
                            eFormSDK.Integration.Tests/CoreTestCase.cs on lines 105..111

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

                            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