Showing 886 of 3,221 total issues
Method LanguageQuestionSet_Create_DoesCreate_W_MicrotingUid
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task LanguageQuestionSet_Create_DoesCreate_W_MicrotingUid()
{
//Assert
Random rnd = new Random();
Method CaseDelete
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> CaseDelete(int templateId, int siteUId, string workflowState)
{
string methodName = "Core.CaseDelete";
try
{
Method SQL_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass()
{
// Arrance
string checksum = "";
Method EntityGroups_Delete_DoesSetWorkflowStateToRemoved
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task EntityGroups_Delete_DoesSetWorkflowStateToRemoved()
{
EntityGroup entityGroup = new EntityGroup
{
Method Core_Template_TemplateDelete_SetsWorkflowStateToRemoved
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Template_TemplateDelete_SetsWorkflowStateToRemoved()
{
// Arrange
Method Core_Site_SiteUpdate_returnsTrue
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test] //Using Communicatorn needs httpMock
public async Task Core_Site_SiteUpdate_returnsTrue()
{
// Arrange
// Arrange
Method Up
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsEditable",
table: "CheckListVersions",
Method Up
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsLocked",
table: "WorkerVersions",
Method ReadeForm
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<MainElement> ReadeForm(int templateId, Language language, bool includeDummyFields)
{
string methodName = "SqlController.TemplateRead";
try
{
Method CaseReadByCaseId
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<CaseDto> CaseReadByCaseId(int caseId)
{
string methodName = "SqlController.CaseReadByCaseId";
try
{
Method GenerateSpecialQuestionTypes
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task GenerateSpecialQuestionTypes(MicrotingDbContext dbContext, int languageId)
{
switch (QuestionType)
{
case Constants.Constants.QuestionTypes.Number:
Method LanguageQuestionSet_Create_DoesCreate_WO_MicrotingUid
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task LanguageQuestionSet_Create_DoesCreate_WO_MicrotingUid()
{
//Assert
Random rnd = new Random();
Method GenerateDataSetFromCases
has 12 arguments (exceeds 4 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)
Method Tags_Update_DoesUpdate
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Tags_Update_DoesUpdate()
{
Random rnd = new Random();
Method Core_SiteWorkers_Advanced_SiteWorkerDelete_MarksAsRemoved
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_SiteWorkers_Advanced_SiteWorkerDelete_MarksAsRemoved()
{
// Arrange
Method Up
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsAchievable",
table: "CheckListVersions",
Method CreateUploadedData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<UploadedData> CreateUploadedData(string checkSum, string currentFile, string extension,
string fileLocation, string fileName, short? local, Worker worker, string uploaderType, int version,
bool createPhysicalFile)
{
UploadedData UD = new UploadedData
Method Advanced_TemplateDisplayIndexChangeServer
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> Advanced_TemplateDisplayIndexChangeServer(int templateId, int siteUId,
int newDisplayIndex)
{
string methodName = "Core.Advanced_TemplateDisplayIndexChangeServer";
try
Method Core_SiteWorkers_Advanced_SiteWorkerCreate_CreatesWorker
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test] //mangler mock
public async Task Core_SiteWorkers_Advanced_SiteWorkerCreate_CreatesWorker()
{
// Arrange
Method SQL_Tags_GetAllTags_DoesReturnAllTags
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Tags_GetAllTags_DoesReturnAllTags()
{
// Arrance
string tagName1 = "Tag1";