Showing 886 of 3,221 total issues
Method AnswerValues_Delete_DoesSetWorkflowStateToRemoved
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task AnswerValues_Delete_DoesSetWorkflowStateToRemoved()
{
//Arrange
File SqlControllerTestAnswer.cs
has 418 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using eFormCore;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
using System;
using System.Collections.Generic;
Method SQL_Template_TemplateSetTags_SetsTag
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Template_TemplateSetTags_SetsTag()
{
// Arrance
Method Checklists_create_DoesCreate
has 149 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Checklists_create_DoesCreate()
{
//Arrange
Method GetQuestionSet
has 149 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> GetQuestionSet(int microtingUid, int questionSetId, int threadNumber)
{
var jsonSerializerSettings = new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
File SqlControllerTestAnswerValue.cs
has 414 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using eFormCore;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
using System;
using System.Collections.Generic;
Method Core_Advanced_DeleteUploadedData_DeletesData
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Advanced_DeleteUploadedData_DeletesData()
{
// Arrange
Method SQL_Template_TemplateItemRead_ReadsItems
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Template_TemplateItemRead_ReadsItems()
{
// Arrance
Method Core_Template_TemplateItemRead_ReadsTemplateItems
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Template_TemplateItemRead_ReadsTemplateItems()
{
// Arrance
Method Core_eFormSimpleSingleSelectFormCreateInDB_ReturnseFormId
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleSingleSelectFormCreateInDB_ReturnseFormId()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method TemplateFromXml
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<MainElement> TemplateFromXml(string xmlString)
#pragma warning restore 1998
{
if (string.IsNullOrEmpty(xmlString))
throw new ArgumentNullException("xmlString cannot be null or empty");
Method Core_eForm_SimpleMultiSelectFormCreateInDB_ReturnseFormId
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_SimpleMultiSelectFormCreateInDB_ReturnseFormId()
{
// Arrange
string xmlstring = @"
Method Cases_Create_DoesCreate
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Cases_Create_DoesCreate()
{
//Arrange
Method Core_eFormSimpleSingleSelectFormFromXML_ReturnseMainElement
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleSingleSelectFormFromXML_ReturnseMainElement()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method CaseUpdateFieldValues
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> CaseUpdateFieldValues(int caseId, Language language)
{
string methodName = "SqlController.CaseUpdateFieldValues";
try
{
File LanguageQuestionSetUTest.cs
has 405 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
Method AnswerValues_Create_DoesCreate
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task AnswerValues_Create_DoesCreate()
{
//Arrange
File SqlControllerTestReplyElementy.cs
has 402 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Linq;
using System.Threading.Tasks;
using Microting.eForm;
using Microting.eForm.Dto;
Method StartSqlOnly
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> StartSqlOnly(string connectionString)
{
// SentrySdk.Init(options =>
// {
// // A Sentry Data Source Name (DSN) is required.
Method GenerateDataSetFromCases
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<List<List<string>>> GenerateDataSetFromCases(int? checkListId, DateTime? start, DateTime? end,
string customPathForUploadedData, string decimalSeparator, string thousandSeparator, bool utcTime,
CultureInfo cultureInfo, TimeZoneInfo timeZoneInfo, Language language, bool includeCheckListText,
bool gpsCoordinates)
{