microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method SQL_Check_CheckListValueStatusRead_ReturnsCheckListValuesStatus has 101 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task SQL_Check_CheckListValueStatusRead_ReturnsCheckListValuesStatus()
        {
            // Arrance
            
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestCheckListValue.cs - About 4 hrs to fix

    Method ClearDb has 101 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            private async Task ClearDb()
            {
                Console.WriteLine($"{DateTime.Now} : ClearDb...");
                List<string> modelNames = new List<string>
                {
    Severity: Major
    Found in eFormSDK.Base.Tests/DbTestFixture.cs - About 4 hrs to fix

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

              [Test]
              public async Task Core_Case_CaseLookupMUId_Returns_ReturnCase()
              {
                  // Arrance
                  #region Arrance
      Severity: Major
      Found in eFormSDK.Integration.Tests/CoreTestCase.cs - About 4 hrs to fix

        File AnswersUTest.cs has 333 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: Minor
        Found in eFormSDK.InSight.Tests/AnswersUTest.cs - About 4 hrs to fix

          Method Questions_Delete_DoesSetWorkflowStateToRemoved has 98 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public async Task Questions_Delete_DoesSetWorkflowStateToRemoved()
                  {
                      //Arrange
          
          
          Severity: Major
          Found in eFormSDK.InSight.Tests/QuestionsUTest.cs - About 3 hrs to fix

            Method CaseDelete has 97 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public async Task<bool> CaseDelete(int microtingUId)
                    {
                        string methodName = "Core.CaseDelete";
            
                        Log.LogVariable(methodName, nameof(microtingUId), microtingUId);
            Severity: Major
            Found in eFormCore/Core.cs - About 3 hrs to fix

              Method SQL_Check_ChecksRead_ReturnsListOfFieldValues has 95 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public async Task SQL_Check_ChecksRead_ReturnsListOfFieldValues()
                      {
                          // Arrance
              
              

                Method options_Update_DoesUpdate has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task options_Update_DoesUpdate()
                        {        
                            // Arrange
                            #region QuestionSet
                Severity: Major
                Found in eFormSDK.Integration.Tests/SqlControllerTestOptions.cs - About 3 hrs to fix

                  Method GetElement has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          private async Task<Element> GetElement(int elementId, Language language, bool includeDummyFields)
                          {
                              string methodName = "SqlController.GetElement";
                              try
                              {
                  Severity: Major
                  Found in eFormCore/Infrastructure/SqlController.cs - About 3 hrs to fix

                    File QuestionsUTest.cs has 324 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: Minor
                    Found in eFormSDK.InSight.Tests/QuestionsUTest.cs - About 3 hrs to fix

                      Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              private async Task ClearDb()
                              {
                                  List<string> modelNames = new List<string>
                                  {
                                      "CaseVersions",
                      Severity: Major
                      Found in eFormSDK.Integration.Case.SqlControllerTests/DbTestFixture.cs - About 3 hrs to fix

                        Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                private async Task ClearDb()
                                {
                                    List<string> modelNames = new List<string>
                                    {
                                        "CaseVersions",
                        Severity: Major
                        Found in eFormSDK.Integration.Base.SqlControllerTests/DbTestFixture.cs - About 3 hrs to fix

                          Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private async Task ClearDb()
                                  {
                                      List<string> modelNames = new List<string>
                                      {
                                          "CaseVersions",
                          Severity: Major
                          Found in eFormSDK.Integration.CheckLists.SqlControllerTests/DbTestFixture.cs - About 3 hrs to fix

                            Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    private async Task ClearDb()
                                    {
                                        List<string> modelNames = new List<string>
                                        {
                                            "CaseVersions",
                            Severity: Major
                            Found in eFormSDK.Integration.CheckLists.CoreTests/DbTestFixture.cs - About 3 hrs to fix

                              Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private async Task ClearDb()
                                      {
                                          List<string> modelNames = new List<string>
                                          {
                                              "CaseVersions",
                              Severity: Major
                              Found in eFormSDK.CheckLists.Tests/DbTestFixture.cs - About 3 hrs to fix

                                Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        private async Task ClearDb()
                                        {
                                            List<string> modelNames = new List<string>
                                            {
                                                "CaseVersions",
                                Severity: Major
                                Found in eFormSDK.Integration.Base.CoreTests/DbTestFixture.cs - About 3 hrs to fix

                                  Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          private async Task ClearDb()
                                          {
                                              List<string> modelNames = new List<string>
                                              {
                                                  "CaseVersions",
                                  Severity: Major
                                  Found in eFormSDK.Integration.Case.CoreTests/DbTestFixture.cs - About 3 hrs to fix

                                    Method ClearDb has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            private async Task ClearDb()
                                            {
                                                List<string> modelNames = new List<string>
                                                {
                                                    "CaseVersions",
                                    Severity: Major
                                    Found in eFormSDK.InSight.Tests/DbTestFixture.cs - About 3 hrs to fix

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

                                              [Test]
                                              public async Task Core_Case_CaseIdLookUp_returnsId()
                                              {
                                      
                                                  // Arrange
                                      Severity: Major
                                      Found in eFormSDK.Integration.Tests/CoreTestCase.cs - About 3 hrs to fix

                                        Method Answers_Create_DoesCreate has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                [Test]
                                                public async Task Answers_Create_DoesCreate()
                                                {
                                                    //Arrange
                                                    Random rnd = new Random();
                                        Severity: Major
                                        Found in eFormSDK.InSight.Tests/AnswersUTest.cs - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language