Showing 886 of 3,221 total issues
File AnswerValuesUTest.cs
has 470 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 SQL_Unit_UnitGetAll_ReturnsAllUnits
has 175 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitGetAll_ReturnsAllUnits()
{
// Arrance
Class Communicator
has 50 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class Communicator
{
#region var
//SqlController sqlController;
Method MoveTranslations
has 173 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static async Task MoveTranslations(MicrotingDbContext dbContext)
{
try
{
List<Field> fields = await dbContext.Fields.ToListAsync();
Method Cases_Delete_DoesSetWorkflowStateToRemoved
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Cases_Delete_DoesSetWorkflowStateToRemoved()
{
//Arrange
Class IHttp
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
Open
internal interface IHttp
{
Task<string> Post(string xmlData, string siteId, string contentType = "application/xml");
Task<string> Status(string elementId, string siteId);
File 20201223104631_AddingTranslations.cs
has 445 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Microting.eForm.Migrations
Method SQL_Unit_UnitRead_ReadsUnit
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitRead_ReadsUnit()
{
// Arrance
Method Core_AdvancedTemplate_Advanced_TemplateFieldReadAll_returnslistofids
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_AdvancedTemplate_Advanced_TemplateFieldReadAll_returnslistofids()
{
#region Templates
Method SQL_Template_TemplateFieldReadAll_ReturnsFieldList
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Template_TemplateFieldReadAll_ReturnsFieldList()
{
// Arrance
Method SQL_Unit_UnitDelete_DeletesUnit
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitDelete_DeletesUnit()
{ // Arrance
#region Arrance
Method SQL_Unit_UnitUpdate_UpdatesUnit
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitUpdate_UpdatesUnit()
{
// Arrance
Method SQL_answerValues_Update_DoesUpdate
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_answerValues_Update_DoesUpdate()
{
// Arrange
Random rnd = new Random();
Method Core_eForm_MultiLvleFormCreateInDB_ReturnseFormId
has 159 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_MultiLvleFormCreateInDB_ReturnseFormId()
{
// Arrange
string xmlstring = @"
Method SQL_Worker_WorkerGetAll_ReturnsAllWorkers
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Worker_WorkerGetAll_ReturnsAllWorkers()
{
// Arrance
#region Arrance
File HttpFake.cs
has 427 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
Method AnswerValues_Update_DoesUpdate
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task AnswerValues_Update_DoesUpdate()
{
//Arrange
File TestHelpers.cs
has 423 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Method Core_eForm_MultiLvleFormFromXML_ReturnseMainElement
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_MultiLvleFormFromXML_ReturnseMainElement()
{
// Arrange
string xmlstring = @"
File 20190315092242_AddingModelseForInsight.cs
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Microting.eForm.Migrations