microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method SQL_Site_SiteGetAll_DoesReturnAllSites has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]

        public async Task SQL_Site_SiteGetAll_DoesReturnAllSites()
        {
            // Arrance
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestSite.cs - About 4 hrs to fix

    File AdminTools.cs has 373 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 eFormCore/AdminTools.cs - About 4 hrs to fix

      Method OptionTranslation_Update_DoesUpdate_W_MicrotingUid has 122 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method OptionTranslation_Update_DoesUpdate_W_MicrotingUid_RemovesUid has 122 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method SubscriberThread has 121 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private void SubscriberThread()
                  {
                      var token = _sqlController.SettingRead(Settings.token).GetAwaiter().GetResult();
                      if (token != "UNIT_TEST___________________L:32" && token != "abc1234567890abc1234567890abcdef")
                      {
          Severity: Major
          Found in eFormCore/Services/Subscriber.cs - About 4 hrs to fix

            Method OptionTranslation_Update_DoesUpdate_WO_MicrotingUid_AddsUid has 120 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

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

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

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

                        [Test]
                        public async Task Core_AdvancedTemplate_Advanced_TemplateUpdateFieldIdsForColumns_ChangesIdsForColumns()
                        {
                            // Arrange
                
                
                Severity: Major
                Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 4 hrs to fix

                  Method OptionTranslation_Update_DoesUpdate_WO_MicrotingUid has 118 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    File Language.cs has 362 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    using System.Linq;
                    using System.Threading.Tasks;
                    
                    namespace Microting.eForm.Infrastructure.Data.Entities
                    {
                    Severity: Minor
                    Found in eFormCore/Infrastructure/Data/Entities/Language.cs - About 4 hrs to fix

                      Method SQL_Check_FieldValueRead_ReturnsAnswer has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method Core_eForm_SimpleFieldGroupsFormCreateInDB_ReturnseFormId has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                [Test]
                                public async Task Core_eForm_SimpleFieldGroupsFormCreateInDB_ReturnseFormId()
                                {
                                    // Arrange
                                    string xmlstring = @"
                        Severity: Major
                        Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormCreateInDB.cs - About 4 hrs to fix

                          Method CheckListValues_Create_DoesCreate has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test]
                                  public async Task CheckListValues_Create_DoesCreate()
                                  {
                                      //Arrange
                          
                          
                          Severity: Major
                          Found in eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs - About 4 hrs to fix

                            Method Down has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    protected override void Down(MigrationBuilder migrationBuilder)
                                    {
                                        migrationBuilder.DropForeignKey(
                                            name: "FK_answer_value_versions_answer_values_answerValueId",
                                            table: "answer_value_versions");
                            Severity: Major
                            Found in eFormCore/Migrations/20190319130214_AddingMissingForeignKeys.cs - About 4 hrs to fix

                              Method Up has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      protected override void Up(MigrationBuilder migrationBuilder)
                                      {
                                          //Setup for SQL Server Provider
                                         
                                          string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
                              Severity: Major
                              Found in eFormCore/Migrations/20200116074236_AddingSiteTaggins.cs - About 4 hrs to fix

                                File SqlControllerTestUnit.cs has 358 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                using System;
                                using System.IO;
                                using System.Linq;
                                using System.Reflection;
                                using System.Threading.Tasks;
                                Severity: Minor
                                Found in eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestUnit.cs - About 4 hrs to fix

                                  File 20190319130214_AddingMissingForeignKeys.cs has 354 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  using Microsoft.EntityFrameworkCore.Migrations;
                                  
                                  namespace Microting.eForm.Migrations
                                  {
                                      public partial class AddingMissingForeignKeys : Migration
                                  Severity: Minor
                                  Found in eFormCore/Migrations/20190319130214_AddingMissingForeignKeys.cs - About 4 hrs to fix

                                    Method Core_Unit_Advanced_UnitReadAll_ReturnsListOfUnits has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Method SQL_Site_SimpleSiteGetAll_DoesReturnSiteList has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Method Answer_update_DoesUpdate has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

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