microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

File OptionTranslationUTest.cs has 725 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
Severity: Major
Found in eFormSDK.InSight.Tests/OptionTranslationUTest.cs - About 1 day to fix

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

                        case Constants.Constants.FieldTypes.MultiSelect:
                            MultiSelect multiSelect = (MultiSelect)dataItem;
                            await field.Create(db).ConfigureAwait(false);
                            fieldTranslation = new FieldTranslation
                            {
    Severity: Major
    Found in eFormCore/Infrastructure/SqlController.cs and 1 other location - About 1 day to fix
    eFormCore/Infrastructure/SqlController.cs on lines 6559..6650

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

    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

                        case Constants.Constants.FieldTypes.SingleSelect:
                            SingleSelect singleSelect = (SingleSelect)dataItem;
                            await field.Create(db).ConfigureAwait(false);
                            fieldTranslation = new FieldTranslation
                            {
    Severity: Major
    Found in eFormCore/Infrastructure/SqlController.cs and 1 other location - About 1 day to fix
    eFormCore/Infrastructure/SqlController.cs on lines 6343..6434

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

    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

    File 20190509074123_RefactoringidtoId.cs has 718 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using Microsoft.EntityFrameworkCore.Metadata;
    using Microsoft.EntityFrameworkCore.Migrations;
    
    namespace Microting.eForm.Migrations
    {
    Severity: Major
    Found in eFormCore/Migrations/20190509074123_RefactoringidtoId.cs - About 1 day to fix

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_BackButtonEnabledTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_AllTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_ValidDisplayTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

                      [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_ValidDisplayBackButtonEnabledTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledImageTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_AllFalse()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayImageTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledImageTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

                      [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedBackButtonEnabledTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedValidDisplayBackButtonEnabledTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_ImageTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetFalse_BackButtonEnabledImageTrue()
              {
                  // Arrange
                  string name = Guid.NewGuid().ToString();
      Severity: Major
      Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
      eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

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

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

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

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language