Created tests
This commit is contained in:
@ -32,7 +32,8 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
throw new Exception(cellInstanceConnectionName);
|
||||
if (_IsDuplicator)
|
||||
throw new Exception(cellInstanceConnectionName);
|
||||
NestExistingFiles(_FileConnectorConfiguration);
|
||||
if (_IsEAFHosted)
|
||||
NestExistingFiles(_FileConnectorConfiguration);
|
||||
if (!Debugger.IsAttached && fileConnectorConfiguration.PreProcessingMode != FileConnectorConfiguration.PreProcessingModeEnum.Process)
|
||||
_Timer = new Timer(Callback, null, (int)(fileConnectorConfiguration.FileScanningIntervalInSeconds * 1000), Timeout.Infinite);
|
||||
else
|
||||
|
@ -1,12 +1,9 @@
|
||||
using Adaptation.Shared;
|
||||
using Adaptation.Shared.Duplicator;
|
||||
using Adaptation.Shared.Methods;
|
||||
using Microsoft.TeamFoundation.WorkItemTracking.WebApi;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Adaptation.FileHandlers.json;
|
||||
@ -20,19 +17,7 @@ public class ProcessData : IProcessData
|
||||
|
||||
public ProcessData(IFileRead fileRead,
|
||||
Logistics logistics,
|
||||
List<FileInfo> fileInfoCollection,
|
||||
HttpClient httpClient,
|
||||
string basePage,
|
||||
string api,
|
||||
string query,
|
||||
WorkItemTrackingHttpClient workItemTrackingHttpClient,
|
||||
string project,
|
||||
ReadOnlyDictionary<string, string> assignedToNameToEncodedPAT,
|
||||
ReadOnlyDictionary<string, string> assignedToNameToUser,
|
||||
ReadOnlyDictionary<string, string> requestorNameToUser,
|
||||
string json,
|
||||
bool forceUpdatedBy,
|
||||
bool forceDeleteUpdatedBy)
|
||||
List<FileInfo> fileInfoCollection)
|
||||
{
|
||||
fileInfoCollection.Clear();
|
||||
_Details = new List<object>();
|
||||
|
@ -66,6 +66,8 @@ public class WorkItem
|
||||
WorkItemType = workItemType;
|
||||
}
|
||||
|
||||
public override string ToString() => $"{Id} - {WorkItemType} - {Title}";
|
||||
|
||||
public static WorkItem Get(WorkItem workItem, string? violation)
|
||||
{
|
||||
WorkItem result = new(workItem.AreaPath,
|
||||
|
Reference in New Issue
Block a user