Showing 886 of 3,221 total issues
Method question_Update_DoesUpdate_ValidDisplayTrue
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Update_DoesUpdate_ValidDisplayTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Update_DoesUpdate_PrioritisedValidDisplayTrue
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Update_DoesUpdate_PrioritisedValidDisplayTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method SaveResult
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<int> SaveResult(Response resp, string respXml, MicrotingDbContext dbContext,
int microtingUid, int? checkIdLastKnown, CaseDto aCase)
{
XmlDocument xDoc = new XmlDocument();
Method Core_Unit_Advanced_UnitRead_ReadsUnit
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Unit_Advanced_UnitRead_ReadsUnit()
{
// Arrange
// #region Checklist
Method QuestionTranslation_Delete_DoesDelete
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task QuestionTranslation_Delete_DoesDelete()
{
Random rnd = new Random();
File SqlControllerTestCheckListValue.cs
has 287 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_eForm_SimpleCommenteFormFromXML_ReturnseMainElement
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test] // Core_Template_TemplateFromXml_ReturnsTemplate()
public async Task Core_eForm_SimpleCommenteFormFromXML_ReturnseMainElement()
{
// Arrange
string xmlstring = @"
Method Up
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "MicrotingUid",
table: "notifications",
Method Down
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "case_versions");
Method XmlToClassUsingXmlDocument
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Response XmlToClassUsingXmlDocument(string xmlStr)
{
try
{
ResponseTypes rType = ResponseTypes.Invalid;
Method EntityGroupAll
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<EntityGroupList> EntityGroupAll(string sort, string nameFilter, int offSet, int pageSize,
string entityType, bool desc, string workflowState)
{
if (entityType != Constants.Constants.FieldTypes.EntitySearch &&
entityType != Constants.Constants.FieldTypes.EntitySelect)
Method Core_eFormSimpleCheckBoxFormCreateInDB_ReturnseFormId
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleCheckBoxFormCreateInDB_ReturnseFormId()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method Core_eForm_SimplePdfFormCreateInDB_ReturnseFormId
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_SimplePdfFormCreateInDB_ReturnseFormId()
{
// Arrange
string xmlstring = @"
Method SimpleSiteGetAll
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<List<SiteDto>> SimpleSiteGetAll(string workflowState, int? offSet, int? limit)
{
List<SiteDto> siteList = new List<SiteDto>();
await using var db = GetContext();
List<Site> matches = null;
Method Options_Delete_DoesSetWorkflowStateToRemoved
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Options_Delete_DoesSetWorkflowStateToRemoved()
{
Random rnd = new Random();
Class SqlControllerTestQuestionSet
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[TestFixture]
public class SqlControllerTestQuestionSet : DbTestFixture
{
private SqlController sut;
private TestHelpers testHelpers;
Method Core_eFormSimpleTimerFormCreateInDB_ReturnseFormId
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleTimerFormCreateInDB_ReturnseFormId()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method Core_eFormSimpleNumberFormFromXML_ReturnseMainElement
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleNumberFormFromXML_ReturnseMainElement()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method SQL_Site_SiteGetAll_DoesReturnAllSites
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Site_SiteGetAll_DoesReturnAllSites()
{
// Arrance
Method Up
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
// migrationBuilder.DropForeignKey(
// name: "FK_field_values_check_lists_check_list_id",
// table: "field_values");