Compare commits
	
		
			9 Commits
		
	
	
		
			13e5e7cccd
			...
			29540199ab
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 29540199ab | |||
| b954fbb66f | |||
| e365af3f6f | |||
| f1b0f15342 | |||
| d05e56847b | |||
| a144459664 | |||
| b7ff282af3 | |||
| cfdf757a42 | |||
| 9d76773ae5 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -342,3 +342,4 @@ ASALocalRun/
 | 
				
			|||||||
*.lnk
 | 
					*.lnk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.kanbn
 | 
					.kanbn
 | 
				
			||||||
 | 
					Adaptation/.kanbn
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								.vscode/mklink.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.vscode/mklink.md
									
									
									
									
										vendored
									
									
								
							@ -1,11 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
type: "note"
 | 
					 | 
				
			||||||
created: "2023-10-20T03:52:57.401Z"
 | 
					 | 
				
			||||||
updated: "2023-10-20T03:53:49.161Z"
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# mklink
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```bash
 | 
					 | 
				
			||||||
mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\METCLIMATEC\06_SourceCode\METCLIMATEC\.kanbn" "D:\5-Other-Small\Kanban\METCLIMATEC"
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
@ -100,6 +100,7 @@ dotnet_diagnostic.CA1846.severity = none # CA1846: Prefer AsSpan over Substring
 | 
				
			|||||||
dotnet_diagnostic.CA1847.severity = none # CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters
 | 
					dotnet_diagnostic.CA1847.severity = none # CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters
 | 
				
			||||||
dotnet_diagnostic.CA1854.severity = warning # CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup
 | 
					dotnet_diagnostic.CA1854.severity = warning # CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup
 | 
				
			||||||
dotnet_diagnostic.CA1860.severity = error # CA1860: Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance
 | 
					dotnet_diagnostic.CA1860.severity = error # CA1860: Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance
 | 
				
			||||||
 | 
					dotnet_diagnostic.CA1861.severity = none # CA1861: Prefer 'static readonly' fields over constant array arguments
 | 
				
			||||||
dotnet_diagnostic.CA1862.severity = none # CA1862: Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'
 | 
					dotnet_diagnostic.CA1862.severity = none # CA1862: Prefer using 'string.Equals(string, StringComparison)' to perform a case-insensitive comparison, but keep in mind that this might cause subtle changes in behavior, so make sure to conduct thorough testing after applying the suggestion, or if culturally sensitive comparison is not required, consider using 'StringComparison.OrdinalIgnoreCase'
 | 
				
			||||||
dotnet_diagnostic.CA1864.severity = none # CA1864: To avoid double lookup, call 'TryAdd' instead of calling 'Add' with a 'ContainsKey' guard
 | 
					dotnet_diagnostic.CA1864.severity = none # CA1864: To avoid double lookup, call 'TryAdd' instead of calling 'Add' with a 'ContainsKey' guard
 | 
				
			||||||
dotnet_diagnostic.CA1866.severity = none # CA1866: Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char
 | 
					dotnet_diagnostic.CA1866.severity = none # CA1866: Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								Adaptation/.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Adaptation/.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@ -4,7 +4,7 @@
 | 
				
			|||||||
      "name": ".NET Core Attach",
 | 
					      "name": ".NET Core Attach",
 | 
				
			||||||
      "type": "coreclr",
 | 
					      "type": "coreclr",
 | 
				
			||||||
      "request": "attach",
 | 
					      "request": "attach",
 | 
				
			||||||
      "processId": 12844
 | 
					      "processId": 14996
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								Adaptation/.vscode/mklink.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								Adaptation/.vscode/mklink.md
									
									
									
									
										vendored
									
									
								
							@ -1,15 +1,4 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
type: "note"
 | 
					 | 
				
			||||||
created: "2023-10-20T03:56:21.490Z"
 | 
					 | 
				
			||||||
updated: "2023-10-20T03:57:15.006Z"
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# mklink
 | 
					# mklink
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash /J \.kanbnh "D:\5-Other-Small\Kanban\"
 | 
				
			||||||
mklink /J "T:\METCLIMATEC\06_SourceCode\METCLIMATEC\Adaptation\.kanbn" "D:\5-Other-Small\Kanban\METCLIMATEC"
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```bash
 | 
					 | 
				
			||||||
mklink /J "T:\METCLIMATEC\06_SourceCode\METCLIMATEC\Adaptation\.kanbn" "D:\5-Other-Small\Kanban\METCLIMATEC"
 | 
					 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										32
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							@ -13,21 +13,23 @@
 | 
				
			|||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Test",
 | 
					            "label": "Test-Debug",
 | 
				
			||||||
            "command": "dotnet",
 | 
					 | 
				
			||||||
            "type": "process",
 | 
					 | 
				
			||||||
            "args": [
 | 
					 | 
				
			||||||
                "test"
 | 
					 | 
				
			||||||
            ],
 | 
					 | 
				
			||||||
            "problemMatcher": "$msCompile"
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "label": "Test Release",
 | 
					 | 
				
			||||||
            "command": "dotnet",
 | 
					            "command": "dotnet",
 | 
				
			||||||
            "type": "process",
 | 
					            "type": "process",
 | 
				
			||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
                "test",
 | 
					                "test",
 | 
				
			||||||
                "-r",
 | 
					                "-c",
 | 
				
			||||||
 | 
					                "Debug"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "Test-Release",
 | 
				
			||||||
 | 
					            "command": "dotnet",
 | 
				
			||||||
 | 
					            "type": "process",
 | 
				
			||||||
 | 
					            "args": [
 | 
				
			||||||
 | 
					                "test",
 | 
				
			||||||
 | 
					                "-c",
 | 
				
			||||||
                "Release"
 | 
					                "Release"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
@ -66,7 +68,7 @@
 | 
				
			|||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
                "/target:Build",
 | 
					                "/target:Build",
 | 
				
			||||||
                "/restore:True",
 | 
					                "/restore:True",
 | 
				
			||||||
                "/p:RestoreSources=https://api.nuget.org/v3/index.json%3Bhttps://packagemanagement.eu.infineon.com:4430/api/v2/%3Bhttps://tfs.intra.infineon.com/tfs/ManufacturingIT/_packaging/eaf/nuget/v3/index.json%3Bhttps://localhost/v3/index.json",
 | 
					                "/p:RestoreSources=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/%3Bhttps://packagemanagement.eu.infineon.com:4430/api/v2/%3Bhttps://tfs.intra.infineon.com/tfs/ManufacturingIT/_packaging/eaf/nuget/v3/index.json%3Bhttps://tfs.intra.infineon.com/tfs/FactoryIntegration/_packaging/EAF%40Local/nuget/v3/index.json%3Bhttps://api.nuget.org/v3/index.json",
 | 
				
			||||||
                "/detailedsummary",
 | 
					                "/detailedsummary",
 | 
				
			||||||
                "/consoleloggerparameters:PerformanceSummary;ErrorsOnly;",
 | 
					                "/consoleloggerparameters:PerformanceSummary;ErrorsOnly;",
 | 
				
			||||||
                "/property:Configuration=Debug;TargetFrameworkVersion=v4.8",
 | 
					                "/property:Configuration=Debug;TargetFrameworkVersion=v4.8",
 | 
				
			||||||
@ -74,12 +76,6 @@
 | 
				
			|||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            "label": "File-Folder-Helper AOT s M .Kanbn Tasks",
 | 
					 | 
				
			||||||
            "type": "shell",
 | 
					 | 
				
			||||||
            "command": "L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe s M T:/METCLIMATEC/06_SourceCode/METCLIMATEC/Adaptation -s T:/METCLIMATEC/06_SourceCode/METCLIMATEC/Adaptation/.kanbn/tasks",
 | 
					 | 
				
			||||||
            "problemMatcher": []
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Kanbn Console",
 | 
					            "label": "Kanbn Console",
 | 
				
			||||||
            "type": "npm",
 | 
					            "type": "npm",
 | 
				
			||||||
 | 
				
			|||||||
@ -166,8 +166,8 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
                    //
 | 
					                    //
 | 
				
			||||||
                    Date = detail.Date,
 | 
					                    Date = detail.Date,
 | 
				
			||||||
                    Lot = processData.MetaData.Date,
 | 
					                    Lot = processData.MetaData.Date,
 | 
				
			||||||
                    Part = $"{processData.MetaData.DeviceType}-{processData.MetaData.DeviceNumber}",
 | 
					                    Part = $"{processData.MetaData.DeviceId}-{processData.MetaData.DeviceType}-{processData.MetaData.DeviceNumber}",
 | 
				
			||||||
                    Process = $"{processData.MetaData.DeviceId}",
 | 
					                    Process = $"{processData.MetaData.DescriptionName}",
 | 
				
			||||||
                    Recipe = processData.MetaData.Frequency,
 | 
					                    Recipe = processData.MetaData.Frequency,
 | 
				
			||||||
                    //
 | 
					                    //
 | 
				
			||||||
                    Name = detail.Test,
 | 
					                    Name = detail.Test,
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, int? connectionCount, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
					    public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, int? connectionCount, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), true, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), true, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 0;
 | 
					        _MinFileLength = 1000;
 | 
				
			||||||
        _Logistics = new(this);
 | 
					        _Logistics = new(this);
 | 
				
			||||||
        _NullData = string.Empty;
 | 
					        _NullData = string.Empty;
 | 
				
			||||||
        if (_FileParameter is null)
 | 
					        if (_FileParameter is null)
 | 
				
			||||||
@ -109,16 +109,15 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
					    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
 | 
				
			||||||
 | 
					        _TickOffset ??= 0; // new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
 | 
				
			||||||
        string csvFile = Path.Combine(Path.GetDirectoryName(reportFullPath), Path.GetFileNameWithoutExtension(reportFullPath));
 | 
					        string csvFile = Path.Combine(Path.GetDirectoryName(reportFullPath), Path.GetFileNameWithoutExtension(reportFullPath));
 | 
				
			||||||
        if (!File.Exists(csvFile))
 | 
					        _Logistics = new Logistics(this, _TickOffset.Value, csvFile, useSplitForMID: true);
 | 
				
			||||||
            throw new Exception($"<{csvFile}> doesn't exist!");
 | 
					        if (!_Logistics.FileInfo.Exists)
 | 
				
			||||||
        FileInfo fileInfo = new(csvFile);
 | 
					            throw new Exception($"<{_Logistics.FileInfo.FullName}> doesn't exist!");
 | 
				
			||||||
        File.SetCreationTime(reportFullPath, fileInfo.LastWriteTime);
 | 
					        File.SetCreationTime(reportFullPath, _Logistics.FileInfo.LastWriteTime);
 | 
				
			||||||
        File.SetLastWriteTime(reportFullPath, fileInfo.LastWriteTime);
 | 
					        File.SetLastWriteTime(reportFullPath, _Logistics.FileInfo.LastWriteTime);
 | 
				
			||||||
        _TickOffset ??= new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
 | 
					 | 
				
			||||||
        _Logistics = new Logistics(this, _TickOffset.Value, reportFullPath, useSplitForMID: true);
 | 
					 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(csvFile);
 | 
					        string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(_Logistics.FileInfo.FullName);
 | 
				
			||||||
#nullable enable
 | 
					#nullable enable
 | 
				
			||||||
        MetaData? metaData = ProcessData.GetMetaData(_CommaSeparatedValuesConfiguration, fileNameWithoutExtension);
 | 
					        MetaData? metaData = ProcessData.GetMetaData(_CommaSeparatedValuesConfiguration, fileNameWithoutExtension);
 | 
				
			||||||
        if (metaData is null)
 | 
					        if (metaData is null)
 | 
				
			||||||
@ -127,7 +126,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            results.Item4.Add(_Logistics.FileInfo);
 | 
					            results.Item4.Add(_Logistics.FileInfo);
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _CommaSeparatedValuesConfiguration, csvFile, metaData);
 | 
					            IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _CommaSeparatedValuesConfiguration, metaData);
 | 
				
			||||||
            if (iProcessData is not ProcessData processData)
 | 
					            if (iProcessData is not ProcessData processData)
 | 
				
			||||||
                throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks));
 | 
					                throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks));
 | 
				
			||||||
            if (processData.MetaData is null)
 | 
					            if (processData.MetaData is null)
 | 
				
			||||||
@ -138,8 +137,9 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            if (iProcessData.Details.Count == 0)
 | 
					            if (iProcessData.Details.Count == 0)
 | 
				
			||||||
                throw new Exception(string.Concat("C) No Data - ", dateTime.Ticks));
 | 
					                throw new Exception(string.Concat("C) No Data - ", dateTime.Ticks));
 | 
				
			||||||
            results = iProcessData.GetResults(this, _Logistics, results.Item4);
 | 
					            results = iProcessData.GetResults(this, _Logistics, results.Item4);
 | 
				
			||||||
            File.Delete(reportFullPath);
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        if (_IsEAFHosted)
 | 
				
			||||||
 | 
					            File.Delete(reportFullPath);
 | 
				
			||||||
#nullable disable
 | 
					#nullable disable
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,8 @@ public class MetaData
 | 
				
			|||||||
    public int DeviceId { get; set; }
 | 
					    public int DeviceId { get; set; }
 | 
				
			||||||
    public string DeviceType { get; set; }
 | 
					    public string DeviceType { get; set; }
 | 
				
			||||||
    public int DeviceNumber { get; set; }
 | 
					    public int DeviceNumber { get; set; }
 | 
				
			||||||
    public string Description { get; set; }
 | 
					    public string DescriptionName { get; set; }
 | 
				
			||||||
 | 
					    public string DescriptionTest { get; set; }
 | 
				
			||||||
    public string Frequency { get; set; }
 | 
					    public string Frequency { get; set; }
 | 
				
			||||||
    public string Date { get; set; }
 | 
					    public string Date { get; set; }
 | 
				
			||||||
    public string System { get; set; }
 | 
					    public string System { get; set; }
 | 
				
			||||||
 | 
				
			|||||||
@ -22,13 +22,13 @@ public class ProcessData : IProcessData
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
					    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public ProcessData(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, CommaSeparatedValuesConfiguration commaSeparatedValuesConfiguration, string csvFile, MetaData metaData)
 | 
					    public ProcessData(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, CommaSeparatedValuesConfiguration commaSeparatedValuesConfiguration, MetaData metaData)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        JobID = logistics.JobID;
 | 
					        JobID = logistics.JobID;
 | 
				
			||||||
        fileInfoCollection.Clear();
 | 
					        fileInfoCollection.Clear();
 | 
				
			||||||
        _Details = new List<object>();
 | 
					        _Details = new List<object>();
 | 
				
			||||||
        MesEntity = logistics.MesEntity;
 | 
					        MesEntity = logistics.MesEntity;
 | 
				
			||||||
        Parse(fileRead, logistics, fileInfoCollection, commaSeparatedValuesConfiguration, csvFile, metaData);
 | 
					        Parse(fileRead, logistics, fileInfoCollection, commaSeparatedValuesConfiguration, metaData);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string IProcessData.GetCurrentReactor(IFileRead fileRead, Logistics logistics, Dictionary<string, string> reactors) => throw new Exception(string.Concat("See ", nameof(Parse)));
 | 
					    string IProcessData.GetCurrentReactor(IFileRead fileRead, Logistics logistics, Dictionary<string, string> reactors) => throw new Exception(string.Concat("See ", nameof(Parse)));
 | 
				
			||||||
@ -73,7 +73,8 @@ public class ProcessData : IProcessData
 | 
				
			|||||||
                DeviceId = deviceId,
 | 
					                DeviceId = deviceId,
 | 
				
			||||||
                DeviceType = match.Groups["DeviceType"].Value,
 | 
					                DeviceType = match.Groups["DeviceType"].Value,
 | 
				
			||||||
                DeviceNumber = deviceNumber,
 | 
					                DeviceNumber = deviceNumber,
 | 
				
			||||||
                Description = match.Groups["Description"].Value,
 | 
					                DescriptionName = match.Groups["DescriptionName"].Value,
 | 
				
			||||||
 | 
					                DescriptionTest = match.Groups["DescriptionTest"].Value,
 | 
				
			||||||
                Frequency = match.Groups["Frequency"].Value,
 | 
					                Frequency = match.Groups["Frequency"].Value,
 | 
				
			||||||
                Date = match.Groups["Date"].Value
 | 
					                Date = match.Groups["Date"].Value
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
@ -82,17 +83,17 @@ public class ProcessData : IProcessData
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma warning disable IDE0060
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
    private void Parse(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, CommaSeparatedValuesConfiguration commaSeparatedValuesConfiguration, string csvFile, MetaData metaData)
 | 
					    private void Parse(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, CommaSeparatedValuesConfiguration commaSeparatedValuesConfiguration, MetaData metaData)
 | 
				
			||||||
#pragma warning restore IDE0060
 | 
					#pragma warning restore IDE0060
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string[] lines = File.ReadAllLines(csvFile);
 | 
					        string[] lines = File.ReadAllLines(logistics.FileInfo.FullName);
 | 
				
			||||||
        string line = lines[0];
 | 
					        string line = lines[0];
 | 
				
			||||||
        string[] columns = line.Split('"');
 | 
					        string[] columns = line.Split('"');
 | 
				
			||||||
        fileInfoCollection.Add(new FileInfo(csvFile));
 | 
					        fileInfoCollection.Add(logistics.FileInfo);
 | 
				
			||||||
        if (columns.Length == commaSeparatedValuesConfiguration.Columns)
 | 
					        if (columns.Length == commaSeparatedValuesConfiguration.Columns)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            string test = columns[commaSeparatedValuesConfiguration.TestIndex].Trim().Trim('"');
 | 
					            string test = columns[commaSeparatedValuesConfiguration.TestIndex].Trim().Trim('"');
 | 
				
			||||||
            if (test == metaData.Description)
 | 
					            if (test.IndexOf(metaData.DescriptionTest, 0, StringComparison.CurrentCultureIgnoreCase) > -1 && test.IndexOf(metaData.DescriptionName, 0, StringComparison.CurrentCultureIgnoreCase) > -1)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                for (int i = 1; i < lines.Length; i++)
 | 
					                for (int i = 1; i < lines.Length; i++)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
@ -102,12 +103,11 @@ public class ProcessData : IProcessData
 | 
				
			|||||||
                    columns = line.Split(',').Select(l => l.Trim().Trim('"')).ToArray();
 | 
					                    columns = line.Split(',').Select(l => l.Trim().Trim('"')).ToArray();
 | 
				
			||||||
                    if (columns.Length != commaSeparatedValuesConfiguration.Columns)
 | 
					                    if (columns.Length != commaSeparatedValuesConfiguration.Columns)
 | 
				
			||||||
                        continue;
 | 
					                        continue;
 | 
				
			||||||
                    _Details.Add(new Record() { Test = test, Date = columns[0], Value = columns[1], Event = columns[2] });
 | 
					                    _Details.Add(new Record() { Test = metaData.DescriptionTest, Date = columns[0], Value = columns[1], Event = columns[2] });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                MetaData = metaData;
 | 
					                MetaData = metaData;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    internal static List<Description> GetDescriptions(JsonElement[] jsonElements)
 | 
					    internal static List<Description> GetDescriptions(JsonElement[] jsonElements)
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,7 @@ steps:
 | 
				
			|||||||
    displayName: Configuration
 | 
					    displayName: Configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: |
 | 
					  - script: |
 | 
				
			||||||
      set nugetSource=https://eaf-dev-reporting.mes.infineon.com/v3/index.json
 | 
					      set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/index.json;D:/vsts-agent-win-x64-2.210.1-eaf/nuget
 | 
				
			||||||
      echo %nugetSource%
 | 
					      echo %nugetSource%
 | 
				
			||||||
      echo ##vso[task.setvariable variable=NugetSource;]%nugetSource%
 | 
					      echo ##vso[task.setvariable variable=NugetSource;]%nugetSource%
 | 
				
			||||||
      echo $(NugetSource)
 | 
					      echo $(NugetSource)
 | 
				
			||||||
@ -121,7 +121,7 @@ steps:
 | 
				
			|||||||
    displayName: "Core Publish"
 | 
					    displayName: "Core Publish"
 | 
				
			||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources=$(NugetSource)'
 | 
					  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources="$(NugetSource)"'
 | 
				
			||||||
    displayName: "MSBuild Restore"
 | 
					    displayName: "MSBuild Restore"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
 | 
					  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
 | 
				
			||||||
@ -140,11 +140,11 @@ steps:
 | 
				
			|||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - task: CopyFiles@2
 | 
					  - task: CopyFiles@2
 | 
				
			||||||
    displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository'
 | 
					    displayName: 'Copy Files to: Local D EAF Deployment Storage'
 | 
				
			||||||
    inputs:
 | 
					    inputs:
 | 
				
			||||||
      Contents: "*$(Build.Repository.Name)*"
 | 
					      Contents: "*$(Build.Repository.Name)*"
 | 
				
			||||||
      SourceFolder: 'bin\$(Configuration)'
 | 
					      SourceFolder: 'bin\$(Configuration)'
 | 
				
			||||||
      TargetFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)'
 | 
					      TargetFolder: 'D:\EAF\EAF Deployment Storage\Adaptation_$(Build.Repository.Name)'
 | 
				
			||||||
      OverWrite: true
 | 
					      OverWrite: true
 | 
				
			||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,10 @@
 | 
				
			|||||||
        <DefineConstants>Linux</DefineConstants>
 | 
					        <DefineConstants>Linux</DefineConstants>
 | 
				
			||||||
    </PropertyGroup>
 | 
					    </PropertyGroup>
 | 
				
			||||||
    <ItemGroup>
 | 
					    <ItemGroup>
 | 
				
			||||||
        <PackageReference Include="coverlet.collector" Version="6.0.0" />
 | 
					        <RuntimeHostConfigurationOption Include="AssemblyName" Value="METCLIMATEC" />
 | 
				
			||||||
 | 
					    </ItemGroup>
 | 
				
			||||||
 | 
					    <ItemGroup>
 | 
				
			||||||
 | 
					        <PackageReference Include="coverlet.collector" Version="6.0.2" />
 | 
				
			||||||
        <PackageReference Include="FFMpegCore" Version="5.1.0" />
 | 
					        <PackageReference Include="FFMpegCore" Version="5.1.0" />
 | 
				
			||||||
        <PackageReference Include="IKVM.AWT.WinForms" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="IKVM.AWT.WinForms" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
        <PackageReference Include="IKVM.OpenJDK.Core" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="IKVM.OpenJDK.Core" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
@ -42,34 +45,30 @@
 | 
				
			|||||||
        <PackageReference Include="IKVM.OpenJDK.XML.API" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="IKVM.OpenJDK.XML.API" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
        <PackageReference Include="IKVM.Runtime" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="IKVM.Runtime" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
        <PackageReference Include="Instances" Version="3.0.0" />
 | 
					        <PackageReference Include="Instances" Version="3.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration.json" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration.json" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
 | 
					        <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
 | 
				
			||||||
        <PackageReference Include="Microsoft.Win32.SystemEvents" Version="8.0.0" />
 | 
					        <PackageReference Include="Microsoft.Win32.SystemEvents" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
 | 
					        <PackageReference Include="MSTest.TestAdapter" Version="3.5.1" />
 | 
				
			||||||
        <PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
 | 
					        <PackageReference Include="MSTest.TestFramework" Version="3.5.1" />
 | 
				
			||||||
        <PackageReference Include="Pdfbox" Version="1.1.1"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="Pdfbox" Version="1.1.1"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
        <PackageReference Include="RoboSharp" Version="1.3.5" />
 | 
					        <PackageReference Include="RoboSharp" Version="1.5.3" />
 | 
				
			||||||
        <PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
 | 
					        <PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="System.Data.OleDb" Version="8.0.0" />
 | 
					        <PackageReference Include="System.Data.OleDb" Version="8.0.0" />
 | 
				
			||||||
        <PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
 | 
					        <PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
 | 
				
			||||||
        <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
 | 
					        <PackageReference Include="System.Drawing.Common" Version="8.0.7" />
 | 
				
			||||||
        <PackageReference Include="System.Text.Json" Version="8.0.0" />
 | 
					        <PackageReference Include="System.Text.Json" Version="8.0.4" />
 | 
				
			||||||
        <PackageReference Include="Tesseract" Version="5.2.0" />
 | 
					        <PackageReference Include="Tesseract" Version="5.2.0" />
 | 
				
			||||||
    </ItemGroup>
 | 
					    </ItemGroup>
 | 
				
			||||||
    <ItemGroup>
 | 
					    <ItemGroup>
 | 
				
			||||||
        <PackageReference Include="Microsoft.AspNet.WebApi.SelfHost" Version="5.2.9" />
 | 
					 | 
				
			||||||
    </ItemGroup>
 | 
					 | 
				
			||||||
    <ItemGroup>
 | 
					 | 
				
			||||||
        <PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.205.1" />
 | 
					 | 
				
			||||||
        <PackageReference Include="Tibco.Rendezvous.DotNetCore" Version="8.5.0" />
 | 
					        <PackageReference Include="Tibco.Rendezvous.DotNetCore" Version="8.5.0" />
 | 
				
			||||||
        <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.1" />
 | 
					        <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.1" />
 | 
				
			||||||
    </ItemGroup>
 | 
					    </ItemGroup>
 | 
				
			||||||
 | 
				
			|||||||
@ -26,8 +26,8 @@ steps:
 | 
				
			|||||||
    displayName: Configuration
 | 
					    displayName: Configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: |
 | 
					  - script: |
 | 
				
			||||||
      REM set nugetSource=https://eaf-prod.mes.infineon.com/v3/index.json
 | 
					      REM set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/
 | 
				
			||||||
      set nugetSource=https://eaf-dev-reporting.mes.infineon.com/v3/index.json
 | 
					      set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/index.json;D:/vsts-agent-win-x64-2.210.1-eaf/nuget
 | 
				
			||||||
      echo %nugetSource%
 | 
					      echo %nugetSource%
 | 
				
			||||||
      echo ##vso[task.setvariable variable=NugetSource;]%nugetSource%
 | 
					      echo ##vso[task.setvariable variable=NugetSource;]%nugetSource%
 | 
				
			||||||
      echo $(NugetSource)
 | 
					      echo $(NugetSource)
 | 
				
			||||||
@ -122,7 +122,7 @@ steps:
 | 
				
			|||||||
    displayName: "Core Publish"
 | 
					    displayName: "Core Publish"
 | 
				
			||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources=$(NugetSource)'
 | 
					  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources="$(NugetSource)"'
 | 
				
			||||||
    displayName: "MSBuild Restore"
 | 
					    displayName: "MSBuild Restore"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
 | 
					  - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
 | 
				
			||||||
@ -140,7 +140,7 @@ steps:
 | 
				
			|||||||
      OverWrite: true
 | 
					      OverWrite: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - task: CopyFiles@2
 | 
					  - task: CopyFiles@2
 | 
				
			||||||
    displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository'
 | 
					    displayName: 'Copy Files to: Local D EAF Deployment Storage'
 | 
				
			||||||
    inputs:
 | 
					    inputs:
 | 
				
			||||||
      Contents: "*$(Build.Repository.Name)*"
 | 
					      Contents: "*$(Build.Repository.Name)*"
 | 
				
			||||||
      SourceFolder: 'bin\$(Configuration)'
 | 
					      SourceFolder: 'bin\$(Configuration)'
 | 
				
			||||||
 | 
				
			|||||||
@ -2,18 +2,27 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public partial class WS
 | 
					public partial class WS
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public class Attachment
 | 
					    public class Attachment
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public string SubGroupId { get; set; }
 | 
				
			||||||
 | 
					        public long HeaderId { get; set; }
 | 
				
			||||||
 | 
					        public string HeaderIdDirectory { get; set; }
 | 
				
			||||||
        public string UniqueId { get; set; }
 | 
					        public string UniqueId { get; set; }
 | 
				
			||||||
        public string DestinationFileName { get; set; }
 | 
					        public string DestinationFileName { get; set; }
 | 
				
			||||||
        public string SourceFileName { get; set; }
 | 
					        public string SourceFileName { get; set; }
 | 
				
			||||||
 | 
					        public string AttachmentId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Attachment(string uniqueId, string destinationFileName, string sourceFileName)
 | 
					        public Attachment(string subGroupId, long headerId, string headerIdDirectory, string uniqueId, string destinationFileName, string sourceFileName)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            SubGroupId = subGroupId;
 | 
				
			||||||
 | 
					            HeaderId = headerId;
 | 
				
			||||||
 | 
					            HeaderIdDirectory = headerIdDirectory;
 | 
				
			||||||
            UniqueId = uniqueId;
 | 
					            UniqueId = uniqueId;
 | 
				
			||||||
            DestinationFileName = destinationFileName;
 | 
					            DestinationFileName = destinationFileName;
 | 
				
			||||||
            SourceFileName = sourceFileName;
 | 
					            SourceFileName = sourceFileName;
 | 
				
			||||||
 | 
					            AttachmentId = System.Guid.NewGuid().ToString();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ namespace Adaptation.Shared.Metrology;
 | 
				
			|||||||
public partial class WS
 | 
					public partial class WS
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static (string, Results) SendData(string url, object payload, int timeoutSeconds = 120)
 | 
					    public static (string, Results) SendData(string url, long sequence, string directory, object payload, int timeoutSeconds = 120)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Results results = new();
 | 
					        Results results = new();
 | 
				
			||||||
        string resultsJson = string.Empty;
 | 
					        string resultsJson = string.Empty;
 | 
				
			||||||
@ -31,6 +31,10 @@ public partial class WS
 | 
				
			|||||||
                HttpResponseMessage httpResponseMessage = httpClient.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseContentRead).Result;
 | 
					                HttpResponseMessage httpResponseMessage = httpClient.SendAsync(httpRequestMessage, HttpCompletionOption.ResponseContentRead).Result;
 | 
				
			||||||
                resultsJson = httpResponseMessage.Content.ReadAsStringAsync().Result;
 | 
					                resultsJson = httpResponseMessage.Content.ReadAsStringAsync().Result;
 | 
				
			||||||
                results = JsonSerializer.Deserialize<Results>(resultsJson, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
 | 
					                results = JsonSerializer.Deserialize<Results>(resultsJson, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
 | 
				
			||||||
 | 
					                string checkDirectory = Path.Combine(directory, $"-{results.HeaderID}");
 | 
				
			||||||
 | 
					                if (!Directory.Exists(checkDirectory))
 | 
				
			||||||
 | 
					                    _ = Directory.CreateDirectory(checkDirectory);
 | 
				
			||||||
 | 
					                File.WriteAllText(Path.Combine(checkDirectory, $"{sequence}.json"), json);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (!results.Success)
 | 
					            if (!results.Success)
 | 
				
			||||||
                results.Errors.Add(results.ToString());
 | 
					                results.Errors.Add(results.ToString());
 | 
				
			||||||
@ -51,58 +55,54 @@ public partial class WS
 | 
				
			|||||||
        return new(resultsJson, results);
 | 
					        return new(resultsJson, results);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // this method is a wrapper for attaching a file to either a header or data record
 | 
					    public static void AttachFile(string url, Attachment attachment, int timeoutSeconds = 60)
 | 
				
			||||||
    //   URL is the same URL used for SendData, ex: http://localhost/api/inbound/CDE
 | 
					 | 
				
			||||||
    //   attachToHeaderId is the ID returned by SendData 
 | 
					 | 
				
			||||||
    //   attachToDataUniqueId is the string unique ID for the data record, aka the Title of the Sharepoint list entry
 | 
					 | 
				
			||||||
    //   fileContents is a byte array with the contents of the file
 | 
					 | 
				
			||||||
    //   fileName is which attachment this is, image.pdf, data.pdf, data.txt, header.pdf, etc
 | 
					 | 
				
			||||||
    //   timeoutSeconds is configured as the request timeout
 | 
					 | 
				
			||||||
    // this method will either succeed or throw an exception
 | 
					 | 
				
			||||||
    // also, this has been made synchronous
 | 
					 | 
				
			||||||
    public static void AttachFile(string url, long attachToHeaderId, string attachToDataUniqueId, byte[] fileContents, string fileName, int timeoutSeconds = 60)
 | 
					 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        using HttpClient httpClient = new();
 | 
					        using HttpClient httpClient = new();
 | 
				
			||||||
        string requestUrl = url + "/attachment?headerid=" + attachToHeaderId.ToString();
 | 
					        string json = JsonSerializer.Serialize(attachment);
 | 
				
			||||||
        if (!string.IsNullOrWhiteSpace(attachToDataUniqueId))
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            requestUrl += "&datauniqueid=";
 | 
					 | 
				
			||||||
            requestUrl += System.Net.WebUtility.UrlEncode(attachToDataUniqueId);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        requestUrl += "&filename="; // this is just so the web server log shows the filename
 | 
					 | 
				
			||||||
        requestUrl += System.Net.WebUtility.UrlEncode(fileName);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        httpClient.Timeout = new TimeSpan(0, 0, 0, timeoutSeconds, 0);
 | 
					        httpClient.Timeout = new TimeSpan(0, 0, 0, timeoutSeconds, 0);
 | 
				
			||||||
 | 
					        StringContent httpContent = new(json, Encoding.UTF8, "application/json");
 | 
				
			||||||
        MultipartFormDataContent multipartFormDataContent = new();
 | 
					        HttpResponseMessage httpResponseMessage = httpClient.PostAsync($"{url}/attachment", httpContent).Result;
 | 
				
			||||||
        ByteArrayContent byteArrayContent = new(fileContents);
 | 
					        if (!httpResponseMessage.IsSuccessStatusCode)
 | 
				
			||||||
        byteArrayContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
 | 
					        {
 | 
				
			||||||
 | 
					            string resultBody = httpResponseMessage.Content.ReadAsStringAsync().Result;
 | 
				
			||||||
        multipartFormDataContent.Add(byteArrayContent, "attachment", fileName);
 | 
					            throw new Exception($"Attachment failed: {resultBody}");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        HttpResponseMessage httpResponseMessage = httpClient.PostAsync(requestUrl, multipartFormDataContent).Result;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (httpResponseMessage.IsSuccessStatusCode)
 | 
					 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        string resultBody = httpResponseMessage.Content.ReadAsStringAsync().Result;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        throw new Exception("Attachment failed: " + resultBody);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static void AttachFiles(string url, long headerID, List<Attachment> headerAttachments = null, List<Attachment> dataAttachments = null)
 | 
					    public static void AttachFiles(string url, List<Attachment> headerAttachments = null, List<Attachment> dataAttachments = null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        string directory;
 | 
				
			||||||
        try
 | 
					        try
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (headerAttachments is not null)
 | 
					            if (headerAttachments is not null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                foreach (Attachment attachment in headerAttachments)
 | 
					                foreach (Attachment attachment in headerAttachments)
 | 
				
			||||||
                    AttachFile(url, headerID, "", File.ReadAllBytes(attachment.SourceFileName), attachment.DestinationFileName);
 | 
					                {
 | 
				
			||||||
 | 
					                    directory = Path.Combine(Path.GetDirectoryName(attachment.HeaderIdDirectory), attachment.AttachmentId) ?? throw new Exception();
 | 
				
			||||||
 | 
					                    if (!Directory.Exists(directory))
 | 
				
			||||||
 | 
					                        _ = Directory.CreateDirectory(directory);
 | 
				
			||||||
 | 
					                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (dataAttachments is not null)
 | 
					            if (dataAttachments is not null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                foreach (Attachment attachment in dataAttachments)
 | 
					                foreach (Attachment attachment in dataAttachments)
 | 
				
			||||||
                    AttachFile(url, headerID, attachment.UniqueId, File.ReadAllBytes(attachment.SourceFileName), attachment.DestinationFileName);
 | 
					                {
 | 
				
			||||||
 | 
					                    directory = Path.Combine(Path.GetDirectoryName(attachment.HeaderIdDirectory.Replace("Header", "Data")), attachment.AttachmentId) ?? throw new Exception();
 | 
				
			||||||
 | 
					                    if (!Directory.Exists(directory))
 | 
				
			||||||
 | 
					                        _ = Directory.CreateDirectory(directory);
 | 
				
			||||||
 | 
					                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (headerAttachments is not null)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                foreach (Attachment attachment in headerAttachments)
 | 
				
			||||||
 | 
					                    AttachFile(url, attachment);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (dataAttachments is not null)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                foreach (Attachment attachment in dataAttachments)
 | 
				
			||||||
 | 
					                    AttachFile(url, attachment);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            //MessageBox.Show(r.ToString());
 | 
					            //MessageBox.Show(r.ToString());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,117 @@
 | 
				
			|||||||
 | 
					#if v2_52_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_52_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static METCLIMATEC EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static METCLIMATEC() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new METCLIMATEC(testContext);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
 | 
				
			||||||
 | 
					        string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassCleanup()]
 | 
				
			||||||
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__MoveMatchingFiles()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__IQSSi()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Processed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Archive()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637400762709163000.zip";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					#if v2_52_0
 | 
				
			||||||
using Adaptation._Tests.Shared;
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
using Microsoft.Extensions.Logging;
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
@ -47,7 +48,9 @@ public class TRENDLOG : EAFLoggingUnitTesting
 | 
				
			|||||||
        EAFLoggingUnitTesting?.Dispose();
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__csv()
 | 
					    public void Staging__v2_52_0__TRENDLOG__csv()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -59,65 +62,5 @@ public class TRENDLOG : EAFLoggingUnitTesting
 | 
				
			|||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [Ignore]
 | 
					}
 | 
				
			||||||
    [TestMethod]
 | 
					#endif
 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__MoveMatchingFiles()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string check = "*.pdsf";
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__IQSSi()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string check = "*.pdsf";
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if DEBUG
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__Processed()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string check = "*.pdsf";
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if DEBUG
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__Archive()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string check = "*.pdsf";
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#if DEBUG
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__Dummy()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string check = "637400762709163000.zip";
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
					 | 
				
			||||||
        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -0,0 +1,107 @@
 | 
				
			|||||||
 | 
					#if v2_56_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static METCLIMATEC EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static METCLIMATEC() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new METCLIMATEC(testContext);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
 | 
				
			||||||
 | 
					        string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassCleanup()]
 | 
				
			||||||
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__IQSSi()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Processed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Archive()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637953064190000000.zip";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,64 @@
 | 
				
			|||||||
 | 
					#if v2_56_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class TRENDLOG : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static TRENDLOG EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static TRENDLOG() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public TRENDLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public TRENDLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new TRENDLOG(testContext);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
 | 
				
			||||||
 | 
					        string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassCleanup()]
 | 
				
			||||||
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__TRENDLOG__csv()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,117 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static METCLIMATEC EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static METCLIMATEC() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public METCLIMATEC(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new METCLIMATEC(testContext);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
 | 
				
			||||||
 | 
					        string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassCleanup()]
 | 
				
			||||||
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__IQSSi()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Processed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Archive()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637953064190000000.zip";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,66 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class TRENDLOG : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static TRENDLOG EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static TRENDLOG() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public TRENDLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public TRENDLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new TRENDLOG(testContext);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
 | 
				
			||||||
 | 
					        string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassCleanup()]
 | 
				
			||||||
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting?.Dispose();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__TRENDLOG__csv()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										123
									
								
								Adaptation/_Tests/Extract/Staging/v2.52.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										123
									
								
								Adaptation/_Tests/Extract/Staging/v2.52.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,123 @@
 | 
				
			|||||||
 | 
					#if v2_52_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Staging.v2_52_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Staging.v2_52_0.METCLIMATEC _METCLIMATEC;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Staging.v2_52_0.METCLIMATEC.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _METCLIMATEC = CreateSelfDescription.Staging.v2_52_0.METCLIMATEC.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__csv638465291633220311__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_METCLIMATEC.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__MoveMatchingFiles() => _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__MoveMatchingFiles637953064190000000__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_METCLIMATEC.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__IQSSi() => _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__IQSSi638465291633220310__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Processed() => _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Archive() => _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__METCLIMATEC__Dummy() => _METCLIMATEC.Staging__v2_52_0__METCLIMATEC__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					#if v2_52_0
 | 
				
			||||||
using Adaptation._Tests.Shared;
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
@ -38,7 +39,7 @@ public class TRENDLOG
 | 
				
			|||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__ConvertExcelToJson() => _TRENDLOG.Staging__v2_52_0__TRENDLOG__csv();
 | 
					    public void Staging__v2_56_0__TRENDLOG__csv() => _TRENDLOG.Staging__v2_52_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
@ -61,6 +62,27 @@ public class TRENDLOG
 | 
				
			|||||||
        NonThrowTryCatch();
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_52_0__TRENDLOG__csv638465291633220311__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _TRENDLOG.Staging__v2_52_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@ -124,4 +146,5 @@ public class TRENDLOG
 | 
				
			|||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
    public void Staging__v2_52_0__TRENDLOG__Dummy() => _TRENDLOG.Staging__v2_52_0__TRENDLOG__Dummy();
 | 
					    public void Staging__v2_52_0__TRENDLOG__Dummy() => _TRENDLOG.Staging__v2_52_0__TRENDLOG__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										86
									
								
								Adaptation/_Tests/Extract/Staging/v2.56.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								Adaptation/_Tests/Extract/Staging/v2.56.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,86 @@
 | 
				
			|||||||
 | 
					#if v2_56_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Staging.v2_56_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Staging.v2_56_0.METCLIMATEC _METCLIMATEC;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Staging.v2_56_0.METCLIMATEC.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _METCLIMATEC = CreateSelfDescription.Staging.v2_56_0.METCLIMATEC.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles637953064190000000__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_METCLIMATEC.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__IQSSi() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__IQSSi638465291633220310__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Processed() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Archive() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__METCLIMATEC__Dummy() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										80
									
								
								Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					#if v2_56_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Staging.v2_56_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class TRENDLOG
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Staging.v2_56_0.TRENDLOG _TRENDLOG;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Staging.v2_56_0.TRENDLOG.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _TRENDLOG = CreateSelfDescription.Staging.v2_56_0.TRENDLOG.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__TRENDLOG__csv() => _TRENDLOG.Staging__v2_56_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__TRENDLOG__csv638465291633220310__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _TRENDLOG.Staging__v2_56_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_56_0__TRENDLOG__csv638465291633220312__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _TRENDLOG.Staging__v2_56_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										100
									
								
								Adaptation/_Tests/Extract/Staging/v2.57.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								Adaptation/_Tests/Extract/Staging/v2.57.0/METCLIMATEC.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,100 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Staging.v2_57_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class METCLIMATEC
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Staging.v2_57_0.METCLIMATEC _METCLIMATEC;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Staging.v2_57_0.METCLIMATEC.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _METCLIMATEC = CreateSelfDescription.Staging.v2_57_0.METCLIMATEC.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles637953064190000000__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_METCLIMATEC.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__IQSSi() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__IQSSi638465291633220310__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__IQSSi();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Processed() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Archive() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__METCLIMATEC__Dummy() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										86
									
								
								Adaptation/_Tests/Extract/Staging/v2.57.0/TRENDLOG.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								Adaptation/_Tests/Extract/Staging/v2.57.0/TRENDLOG.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,86 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Staging.v2_57_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class TRENDLOG
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Staging.v2_57_0.TRENDLOG _TRENDLOG;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Staging.v2_57_0.TRENDLOG.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _TRENDLOG = CreateSelfDescription.Staging.v2_57_0.TRENDLOG.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__TRENDLOG__csv() => _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__TRENDLOG__csv638465291633220310__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Staging__v2_57_0__TRENDLOG__csv638465291633220312__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*.csv.trg";
 | 
				
			||||||
 | 
					        _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg";
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
 | 
				
			||||||
 | 
					        string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item3);
 | 
				
			||||||
 | 
					        Assert.IsNotNull(extractResult.Item4);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -562,7 +562,7 @@ public class AdaptationTesting : ISMTP
 | 
				
			|||||||
                else if (i == 1)
 | 
					                else if (i == 1)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (componentsCellComponentCellComponent.Equipment.EquipmentType.Version != cellInstanceVersionName)
 | 
					                    if (componentsCellComponentCellComponent.Equipment.EquipmentType.Version != cellInstanceVersionName)
 | 
				
			||||||
                        throw new Exception("Versions should match!");
 | 
					                        throw new Exception($"Versions should match! {componentsCellComponentCellComponent.Equipment.EquipmentType.Version} != {cellInstanceVersionName}");
 | 
				
			||||||
                    equipmentTypeName = componentsCellComponentCellComponent.Equipment.EquipmentType.Name;
 | 
					                    equipmentTypeName = componentsCellComponentCellComponent.Equipment.EquipmentType.Name;
 | 
				
			||||||
                    _ = stringBuilder.
 | 
					                    _ = stringBuilder.
 | 
				
			||||||
                        AppendLine("#if true").
 | 
					                        AppendLine("#if true").
 | 
				
			||||||
@ -1244,6 +1244,8 @@ public class AdaptationTesting : ISMTP
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        string result;
 | 
					        string result;
 | 
				
			||||||
        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        if (extractResult is null)
 | 
				
			||||||
 | 
					            throw new Exception($"Using pattern {variables[4]} no file was found <{variables[2]}>");
 | 
				
			||||||
        if (!fileRead.IsDuplicator)
 | 
					        if (!fileRead.IsDuplicator)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
					            Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
 | 
				
			||||||
 | 
				
			|||||||
@ -57,31 +57,6 @@ public class METCLIMATEC : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Development()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        StringBuilder results = new();
 | 
					 | 
				
			||||||
        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            new("METCLIMATEC", "v2.52.0"),
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
        string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2";
 | 
					 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					 | 
				
			||||||
        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        foreach ((string cellInstanceName, string cellInstanceVersionName) in collection)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration");
 | 
					 | 
				
			||||||
            _ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        string sourceDirectory = "D:/Tmp/cellInstanceVersion.EdaConnection.PortNumber";
 | 
					 | 
				
			||||||
        if (!Directory.Exists(sourceDirectory))
 | 
					 | 
				
			||||||
            _ = Directory.CreateDirectory(sourceDirectory);
 | 
					 | 
				
			||||||
        File.WriteAllText(Path.Combine(sourceDirectory, $"{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv"), results.ToString());
 | 
					 | 
				
			||||||
        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
    public void Staging()
 | 
					    public void Staging()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -89,7 +64,7 @@ public class METCLIMATEC : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
        StringBuilder results = new();
 | 
					        StringBuilder results = new();
 | 
				
			||||||
        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
					        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            new("METCLIMATEC", "v2.52.0"),
 | 
					            new("METCLIMATEC", "v2.57.0"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2";
 | 
					        string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2";
 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
				
			||||||
 | 
				
			|||||||
@ -12,26 +12,26 @@ using System.Text;
 | 
				
			|||||||
namespace Adaptation._Tests.Static;
 | 
					namespace Adaptation._Tests.Static;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TestClass]
 | 
					[TestClass]
 | 
				
			||||||
public class TRENDLOG : LoggingUnitTesting, IDisposable
 | 
					public class CSV : LoggingUnitTesting, IDisposable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma warning disable CA2254
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
#pragma warning disable IDE0060
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    internal static TRENDLOG LoggingUnitTesting { get; private set; }
 | 
					    internal static CSV LoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public TRENDLOG() : base(testContext: null, declaringType: null)
 | 
					    public CSV() : base(testContext: null, declaringType: null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (LoggingUnitTesting is null)
 | 
					        if (LoggingUnitTesting is null)
 | 
				
			||||||
            throw new Exception();
 | 
					            throw new Exception();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public TRENDLOG(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType)
 | 
					    public CSV(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [ClassInitialize]
 | 
					    [ClassInitialize]
 | 
				
			||||||
    public static void ClassInitialize(TestContext testContext) => LoggingUnitTesting ??= new TRENDLOG(testContext);
 | 
					    public static void ClassInitialize(TestContext testContext) => LoggingUnitTesting ??= new CSV(testContext);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [ClassCleanup()]
 | 
					    [ClassCleanup()]
 | 
				
			||||||
    public static void ClassCleanup()
 | 
					    public static void ClassCleanup()
 | 
				
			||||||
@ -57,32 +57,6 @@ public class TRENDLOG : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
    [Ignore]
 | 
					    [Ignore]
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    [TestMethod]
 | 
					 | 
				
			||||||
    public void Development()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					 | 
				
			||||||
        StringBuilder results = new();
 | 
					 | 
				
			||||||
        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            new("TRENDLOG", "v2.52.0"),
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
        string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2";
 | 
					 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					 | 
				
			||||||
        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					 | 
				
			||||||
        foreach ((string cellInstanceName, string cellInstanceVersionName) in collection)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration");
 | 
					 | 
				
			||||||
            _ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        string sourceDirectory = "D:/Tmp/cellInstanceVersion.EdaConnection.PortNumber";
 | 
					 | 
				
			||||||
        if (!Directory.Exists(sourceDirectory))
 | 
					 | 
				
			||||||
            _ = Directory.CreateDirectory(sourceDirectory);
 | 
					 | 
				
			||||||
        File.WriteAllText(Path.Combine(sourceDirectory, $"{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv"), results.ToString());
 | 
					 | 
				
			||||||
        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
					 | 
				
			||||||
        NonThrowTryCatch();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [Ignore]
 | 
					 | 
				
			||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
    public void Staging()
 | 
					    public void Staging()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -90,7 +64,7 @@ public class TRENDLOG : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
        StringBuilder results = new();
 | 
					        StringBuilder results = new();
 | 
				
			||||||
        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
					        (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            new("TRENDLOG", "v2.52.0"),
 | 
					            new("TRENDLOG", "v2.57.0"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2";
 | 
					        string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2";
 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
				
			||||||
@ -51,6 +51,9 @@
 | 
				
			|||||||
  <PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v4.8' ">
 | 
					  <PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v4.8' ">
 | 
				
			||||||
    <DefineConstants>NETFRAMEWORK;NET20;NET35;NET40;NET45;NET451;NET452;NET46;NET461;NET462;NET47;NET471;NET472;NET48;$(DefineConstants)</DefineConstants>
 | 
					    <DefineConstants>NETFRAMEWORK;NET20;NET35;NET40;NET45;NET451;NET452;NET46;NET461;NET462;NET47;NET471;NET472;NET48;$(DefineConstants)</DefineConstants>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
					  <ItemGroup>
 | 
				
			||||||
 | 
					    <RuntimeHostConfigurationOption Include="AssemblyName" Value="METCLIMATEC" />
 | 
				
			||||||
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <Reference Include="System" />
 | 
					    <Reference Include="System" />
 | 
				
			||||||
    <Reference Include="System.Core" />
 | 
					    <Reference Include="System.Core" />
 | 
				
			||||||
@ -165,7 +168,7 @@
 | 
				
			|||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <PackageReference Include="Infineon.EAF.Runtime">
 | 
					    <PackageReference Include="Infineon.EAF.Runtime">
 | 
				
			||||||
      <Version>2.52.0</Version>
 | 
					      <Version>2.57.0</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
    <PackageReference Include="System.Text.Json">
 | 
					    <PackageReference Include="System.Text.Json">
 | 
				
			||||||
      <Version>6.0.3</Version>
 | 
					      <Version>6.0.3</Version>
 | 
				
			||||||
 | 
				
			|||||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 | 
				
			|||||||
// You can specify all the values or you can default the Build and Revision Numbers
 | 
					// You can specify all the values or you can default the Build and Revision Numbers
 | 
				
			||||||
// by using the '*' as shown below:
 | 
					// by using the '*' as shown below:
 | 
				
			||||||
// [assembly: AssemblyVersion("1.0.*")]
 | 
					// [assembly: AssemblyVersion("1.0.*")]
 | 
				
			||||||
[assembly: AssemblyVersion("2.52.2.0")]
 | 
					[assembly: AssemblyVersion("2.57.0.0")]
 | 
				
			||||||
[assembly: AssemblyFileVersion("2.52.2.0")]
 | 
					[assembly: AssemblyFileVersion("2.57.0.0")]
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user