Showing 886 of 3,221 total issues
Method SQL_Site_SiteGetAll_DoesReturnAllSites
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Site_SiteGetAll_DoesReturnAllSites()
{
// Arrance
File AdminTools.cs
has 373 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 OptionTranslation_Update_DoesUpdate_W_MicrotingUid
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task OptionTranslation_Update_DoesUpdate_W_MicrotingUid()
{
//Arrange
Method OptionTranslation_Update_DoesUpdate_W_MicrotingUid_RemovesUid
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task OptionTranslation_Update_DoesUpdate_W_MicrotingUid_RemovesUid()
{
//Arrange
Method SubscriberThread
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void SubscriberThread()
{
var token = _sqlController.SettingRead(Settings.token).GetAwaiter().GetResult();
if (token != "UNIT_TEST___________________L:32" && token != "abc1234567890abc1234567890abcdef")
{
Method OptionTranslation_Update_DoesUpdate_WO_MicrotingUid_AddsUid
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task OptionTranslation_Update_DoesUpdate_WO_MicrotingUid_AddsUid()
{
//Arrange
Method SQL_PostCase_CaseReadByMUId_Returns_ReturnCase
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_PostCase_CaseReadByMUId_Returns_ReturnCase()
{
// Arrance
Method Core_AdvancedTemplate_Advanced_TemplateUpdateFieldIdsForColumns_ChangesIdsForColumns
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_AdvancedTemplate_Advanced_TemplateUpdateFieldIdsForColumns_ChangesIdsForColumns()
{
// Arrange
Method OptionTranslation_Update_DoesUpdate_WO_MicrotingUid
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task OptionTranslation_Update_DoesUpdate_WO_MicrotingUid()
{
//Arrange
File Language.cs
has 362 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.Linq;
using System.Threading.Tasks;
namespace Microting.eForm.Infrastructure.Data.Entities
{
Method SQL_Check_FieldValueRead_ReturnsAnswer
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
[Test]
public async Task Core_eForm_SimpleFieldGroupsFormCreateInDB_ReturnseFormId()
{
// Arrange
string xmlstring = @"
Method CheckListValues_Create_DoesCreate
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task CheckListValues_Create_DoesCreate()
{
//Arrange
Method Down
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_answer_value_versions_answer_values_answerValueId",
table: "answer_value_versions");
Method Up
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
//Setup for SQL Server Provider
string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
File SqlControllerTestUnit.cs
has 358 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
File 20190319130214_AddingMissingForeignKeys.cs
has 354 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Microsoft.EntityFrameworkCore.Migrations;
namespace Microting.eForm.Migrations
{
public partial class AddingMissingForeignKeys : Migration
Method Core_Unit_Advanced_UnitReadAll_ReturnsListOfUnits
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Unit_Advanced_UnitReadAll_ReturnsListOfUnits()
{
#region Arrance
Method SQL_Site_SimpleSiteGetAll_DoesReturnSiteList
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Site_SimpleSiteGetAll_DoesReturnSiteList()
{
Method Answer_update_DoesUpdate
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Answer_update_DoesUpdate()
{
Random rnd = new Random();