Compare commits
	
		
			19 Commits
		
	
	
		
			12949e7444
			...
			10-21-a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c9184b7e92 | |||
| 78c34c1d26 | |||
| 11f393730d | |||
| d07755c3a0 | |||
| 515df7ec37 | |||
| 9e0823033f | |||
| e37d2a0a56 | |||
| 38bd1f5507 | |||
| 7556b12a0d | |||
| 4aac76697b | |||
| ffff7254f0 | |||
| 8468adbb61 | |||
| e3573eddda | |||
| 09a6975691 | |||
| fcbfcd6c20 | |||
| fc32bebeba | |||
| 6b8626d426 | |||
| 35abc2569b | |||
| aee5387635 | 
@ -110,7 +110,7 @@ dotnet_diagnostic.CA2254.severity = none # CA2254: The logging message template
 | 
				
			|||||||
dotnet_diagnostic.IDE0001.severity = warning # IDE0001: Simplify name
 | 
					dotnet_diagnostic.IDE0001.severity = warning # IDE0001: Simplify name
 | 
				
			||||||
dotnet_diagnostic.IDE0002.severity = warning # Simplify (member access) - System.Version.Equals("1", "2"); Version.Equals("1", "2");
 | 
					dotnet_diagnostic.IDE0002.severity = warning # Simplify (member access) - System.Version.Equals("1", "2"); Version.Equals("1", "2");
 | 
				
			||||||
dotnet_diagnostic.IDE0004.severity = warning # IDE0004: Cast is redundant.
 | 
					dotnet_diagnostic.IDE0004.severity = warning # IDE0004: Cast is redundant.
 | 
				
			||||||
dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary
 | 
					dotnet_diagnostic.IDE0005.severity = none # Using directive is unnecessary
 | 
				
			||||||
dotnet_diagnostic.IDE0028.severity = none # IDE0028: Collection initialization can be simplified
 | 
					dotnet_diagnostic.IDE0028.severity = none # IDE0028: Collection initialization can be simplified
 | 
				
			||||||
dotnet_diagnostic.IDE0031.severity = warning # Use null propagation (IDE0031)
 | 
					dotnet_diagnostic.IDE0031.severity = warning # Use null propagation (IDE0031)
 | 
				
			||||||
dotnet_diagnostic.IDE0047.severity = warning # IDE0047: Parentheses can be removed
 | 
					dotnet_diagnostic.IDE0047.severity = warning # IDE0047: Parentheses can be removed
 | 
				
			||||||
@ -122,6 +122,8 @@ dotnet_diagnostic.IDE0290.severity = none # Use primary constructor [Distance]cs
 | 
				
			|||||||
dotnet_diagnostic.IDE0300.severity = none # IDE0300: Collection initialization can be simplified
 | 
					dotnet_diagnostic.IDE0300.severity = none # IDE0300: Collection initialization can be simplified
 | 
				
			||||||
dotnet_diagnostic.IDE0301.severity = none #IDE0301: Collection initialization can be simplified
 | 
					dotnet_diagnostic.IDE0301.severity = none #IDE0301: Collection initialization can be simplified
 | 
				
			||||||
dotnet_diagnostic.IDE0305.severity = none # IDE0305: Collection initialization can be simplified
 | 
					dotnet_diagnostic.IDE0305.severity = none # IDE0305: Collection initialization can be simplified
 | 
				
			||||||
 | 
					dotnet_diagnostic.MSTEST0015.severity = none # MSTEST0015: Test method {method} should not be ignored
 | 
				
			||||||
 | 
					dotnet_diagnostic.MSTEST0037.severity = error # MSTEST0037: Use proper 'Assert' methods
 | 
				
			||||||
dotnet_diagnostic.SYSLIB1045.severity = none # SYSLIB1045: diagnostics for regex source generation
 | 
					dotnet_diagnostic.SYSLIB1045.severity = none # SYSLIB1045: diagnostics for regex source generation
 | 
				
			||||||
dotnet_naming_rule.abstract_method_should_be_pascal_case.severity = warning
 | 
					dotnet_naming_rule.abstract_method_should_be_pascal_case.severity = warning
 | 
				
			||||||
dotnet_naming_rule.abstract_method_should_be_pascal_case.style = pascal_case
 | 
					dotnet_naming_rule.abstract_method_should_be_pascal_case.style = pascal_case
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										39
									
								
								Adaptation/.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										39
									
								
								Adaptation/.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@ -1,10 +1,43 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "configurations": [
 | 
					  "configurations": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "mode": "debug",
 | 
				
			||||||
 | 
					      "name": "Go launch file",
 | 
				
			||||||
 | 
					      "program": "${file}",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "type": "go"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "name": "node Launch Current Opened File",
 | 
				
			||||||
 | 
					      "program": "${file}",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "type": "node"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					      "internalConsoleOptions": "neverOpen",
 | 
				
			||||||
 | 
					      "name": "Debug File",
 | 
				
			||||||
 | 
					      "program": "${file}",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "stopOnEntry": false,
 | 
				
			||||||
 | 
					      "type": "bun",
 | 
				
			||||||
 | 
					      "watchMode": false
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "cwd": "${workspaceFolder}",
 | 
				
			||||||
 | 
					      "internalConsoleOptions": "neverOpen",
 | 
				
			||||||
 | 
					      "name": "Run File",
 | 
				
			||||||
 | 
					      "noDebug": true,
 | 
				
			||||||
 | 
					      "program": "${file}",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "type": "bun",
 | 
				
			||||||
 | 
					      "watchMode": false
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "name": ".NET Core Attach",
 | 
					      "name": ".NET Core Attach",
 | 
				
			||||||
      "type": "coreclr",
 | 
					      "processId": 32760,
 | 
				
			||||||
      "request": "attach",
 | 
					      "request": "attach",
 | 
				
			||||||
      "processId": 16660
 | 
					      "type": "coreclr"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										151
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										151
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							@ -1,19 +1,134 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "version": "2.0.0",
 | 
					    "version": "2.0.0",
 | 
				
			||||||
 | 
					    "inputs": [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "Development",
 | 
				
			||||||
 | 
					            "description": "Which ASP Net Core Environment?",
 | 
				
			||||||
 | 
					            "id": "ASPNETCORE_ENVIRONMENT",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "Development",
 | 
				
			||||||
 | 
					                "Production"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{AssemblyTitle}",
 | 
				
			||||||
 | 
					            "description": "What Assembly Title?",
 | 
				
			||||||
 | 
					            "id": "AssemblyTitle",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{Build.BuildId}",
 | 
				
			||||||
 | 
					            "description": "Which Build BuildId?",
 | 
				
			||||||
 | 
					            "id": "Build.BuildId",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{Build.Reason}",
 | 
				
			||||||
 | 
					            "description": "Which Build Reason?",
 | 
				
			||||||
 | 
					            "id": "Build.Reason",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{Build.Repository.Id}",
 | 
				
			||||||
 | 
					            "description": "Which Build Repository Id?",
 | 
				
			||||||
 | 
					            "id": "Build.Repository.Id",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{Build.Repository.Name}",
 | 
				
			||||||
 | 
					            "description": "Which Build Repository Name?",
 | 
				
			||||||
 | 
					            "id": "Build.Repository.Name",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{Build.SourceVersion}",
 | 
				
			||||||
 | 
					            "description": "Which Build Source Version?",
 | 
				
			||||||
 | 
					            "id": "Build.SourceVersion",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "Debug",
 | 
				
			||||||
 | 
					            "description": "Which Configuration?",
 | 
				
			||||||
 | 
					            "id": "Configuration",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "Debug",
 | 
				
			||||||
 | 
					                "Release"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "net8.0",
 | 
				
			||||||
 | 
					            "description": "Which Core Version?",
 | 
				
			||||||
 | 
					            "id": "CoreVersion",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "net8.0"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe",
 | 
				
			||||||
 | 
					            "description": "Which MS Build?",
 | 
				
			||||||
 | 
					            "id": "MSBuild",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/",
 | 
				
			||||||
 | 
					            "description": "Which Nuget Source?",
 | 
				
			||||||
 | 
					            "id": "NugetSource",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "win-x64",
 | 
				
			||||||
 | 
					            "description": "Which Runtime?",
 | 
				
			||||||
 | 
					            "id": "Runtime",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "win-x64",
 | 
				
			||||||
 | 
					                "win-x32",
 | 
				
			||||||
 | 
					                "linux-x64",
 | 
				
			||||||
 | 
					                "linux-x32"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "L:/",
 | 
				
			||||||
 | 
					            "description": "Which System DefaultWorkingDirectory?",
 | 
				
			||||||
 | 
					            "id": "System.DefaultWorkingDirectory",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "L:/",
 | 
				
			||||||
 | 
					                "D:/",
 | 
				
			||||||
 | 
					                "C:/"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "v4.8",
 | 
				
			||||||
 | 
					            "description": "Which Core Target Framework Version?",
 | 
				
			||||||
 | 
					            "id": "TargetFrameworkVersion",
 | 
				
			||||||
 | 
					            "options": [
 | 
				
			||||||
 | 
					                "v4.8"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "type": "pickString"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "default": "{UserSecretsId}",
 | 
				
			||||||
 | 
					            "description": "Which Core User Secrets Id?",
 | 
				
			||||||
 | 
					            "id": "UserSecretsId",
 | 
				
			||||||
 | 
					            "type": "promptString"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
    "tasks": [
 | 
					    "tasks": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Build",
 | 
					            "label": "Build",
 | 
				
			||||||
            "command": "dotnet",
 | 
					            "command": "dotnet",
 | 
				
			||||||
            "type": "process",
 | 
					            "type": "process",
 | 
				
			||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
                "build",
 | 
					                "build"
 | 
				
			||||||
                "/property:GenerateFullPaths=true",
 | 
					 | 
				
			||||||
                "/consoleloggerparameters:NoSummary"
 | 
					 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Test-Debug",
 | 
					            "label": "Test Debug",
 | 
				
			||||||
            "command": "dotnet",
 | 
					            "command": "dotnet",
 | 
				
			||||||
            "type": "process",
 | 
					            "type": "process",
 | 
				
			||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
@ -24,7 +139,7 @@
 | 
				
			|||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Test-Release",
 | 
					            "label": "Test Release",
 | 
				
			||||||
            "command": "dotnet",
 | 
					            "command": "dotnet",
 | 
				
			||||||
            "type": "process",
 | 
					            "type": "process",
 | 
				
			||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
@ -50,7 +165,7 @@
 | 
				
			|||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Format-Whitespaces",
 | 
					            "label": "Format Whitespaces",
 | 
				
			||||||
            "command": "dotnet",
 | 
					            "command": "dotnet",
 | 
				
			||||||
            "type": "process",
 | 
					            "type": "process",
 | 
				
			||||||
            "args": [
 | 
					            "args": [
 | 
				
			||||||
@ -87,13 +202,33 @@
 | 
				
			|||||||
            "problemMatcher": "$msCompile"
 | 
					            "problemMatcher": "$msCompile"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Project",
 | 
					            "label": "Code Project",
 | 
				
			||||||
            "type": "shell",
 | 
					            "type": "shell",
 | 
				
			||||||
            "command": "code ../MET08THFTIRQS408M.csproj",
 | 
					            "command": "code ../MET08THFTIRQS408M.csproj",
 | 
				
			||||||
            "problemMatcher": []
 | 
					            "problemMatcher": []
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "label": "Git Config",
 | 
					            "label": "Code Read Me",
 | 
				
			||||||
 | 
					            "type": "shell",
 | 
				
			||||||
 | 
					            "command": "code ../README.md",
 | 
				
			||||||
 | 
					            "problemMatcher": []
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "File-Folder-Helper AOT s X Day-Helper-2025-03-20",
 | 
				
			||||||
 | 
					            "type": "shell",
 | 
				
			||||||
 | 
					            "command": "L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe",
 | 
				
			||||||
 | 
					            "args": [
 | 
				
			||||||
 | 
					                "s",
 | 
				
			||||||
 | 
					                "X",
 | 
				
			||||||
 | 
					                "L:/DevOps/EAF-Mesa-Integration/MET08THFTIRQS408M",
 | 
				
			||||||
 | 
					                "Day-Helper-2025-03-20",
 | 
				
			||||||
 | 
					                "false",
 | 
				
			||||||
 | 
					                "4"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "problemMatcher": []
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "label": "Code Git Config",
 | 
				
			||||||
            "type": "shell",
 | 
					            "type": "shell",
 | 
				
			||||||
            "command": "code ../.git/config",
 | 
					            "command": "code ../.git/config",
 | 
				
			||||||
            "problemMatcher": []
 | 
					            "problemMatcher": []
 | 
				
			||||||
 | 
				
			|||||||
@ -14,7 +14,7 @@ namespace Adaptation.FileHandlers.APC;
 | 
				
			|||||||
public class FileRead : Shared.FileRead, IFileRead
 | 
					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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -120,15 +120,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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(processDataStandardFormat);
 | 
				
			||||||
        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
					        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            FileCopy(reportFullPath, dateTime, descriptions);
 | 
					            FileCopy(reportFullPath, dateTime, descriptions);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly string _JobIdParentDirectory;
 | 
					    private readonly string _JobIdParentDirectory;
 | 
				
			||||||
    private readonly string _JobIdArchiveParentDirectory;
 | 
					    private readonly string _JobIdArchiveParentDirectory;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -120,9 +120,10 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        if (dateTime == DateTime.MinValue)
 | 
					        if (dateTime == DateTime.MinValue)
 | 
				
			||||||
            throw new ArgumentNullException(nameof(dateTime));
 | 
					            throw new ArgumentNullException(nameof(dateTime));
 | 
				
			||||||
        string logisticsSequence = _Logistics.Sequence.ToString();
 | 
					        string logisticsSequence = _Logistics.Sequence.ToString();
 | 
				
			||||||
 | 
					        string day = $"{_Logistics.DateTimeFromSequence:yyyy-MM-dd}";
 | 
				
			||||||
        string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00");
 | 
					        string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00");
 | 
				
			||||||
        string weekDirectory = $"{_Logistics.DateTimeFromSequence:yyyy}_Week_{weekOfYear}{@"\"}{_Logistics.DateTimeFromSequence:yyyy-MM-dd}";
 | 
					        string weekDirectory = $"{_Logistics.DateTimeFromSequence:yyyy}_Week_{weekOfYear}";
 | 
				
			||||||
        string destinationArchiveDirectory = Path.Combine(_JobIdArchiveParentDirectory, _Logistics.JobID, weekDirectory);
 | 
					        string destinationArchiveDirectory = Path.Combine(_JobIdArchiveParentDirectory, _Logistics.JobID, weekDirectory, day);
 | 
				
			||||||
        if (!Directory.Exists(destinationArchiveDirectory))
 | 
					        if (!Directory.Exists(destinationArchiveDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(destinationArchiveDirectory);
 | 
					            _ = Directory.CreateDirectory(destinationArchiveDirectory);
 | 
				
			||||||
        string jobIdDirectory = Path.Combine(_JobIdParentDirectory, _Logistics.JobID);
 | 
					        string jobIdDirectory = Path.Combine(_JobIdParentDirectory, _Logistics.JobID);
 | 
				
			||||||
@ -144,15 +145,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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(processDataStandardFormat);
 | 
				
			||||||
        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
					        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            MoveArchive(reportFullPath, dateTime);
 | 
					            MoveArchive(reportFullPath, dateTime);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ namespace Adaptation.FileHandlers;
 | 
				
			|||||||
public class CellInstanceConnectionName
 | 
					public class CellInstanceConnectionName
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    internal static IFileRead Get(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, 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, int? connectionCount)
 | 
					    internal static IFileRead Get(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, int? connectionCount)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        IFileRead result = cellInstanceConnectionName switch
 | 
					        IFileRead result = cellInstanceConnectionName switch
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -21,6 +21,7 @@ public class CellInstanceConnectionName
 | 
				
			|||||||
            nameof(OpenInsight) => new OpenInsight.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(OpenInsight) => new OpenInsight.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
            nameof(OpenInsightMetrologyViewer) => new OpenInsightMetrologyViewer.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(OpenInsightMetrologyViewer) => new OpenInsightMetrologyViewer.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
            nameof(OpenInsightMetrologyViewerAttachments) => new OpenInsightMetrologyViewerAttachments.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(OpenInsightMetrologyViewerAttachments) => new OpenInsightMetrologyViewerAttachments.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
 | 
					            nameof(pdsf) => new pdsf.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
            nameof(Processed) => new Processed.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(Processed) => new Processed.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
            nameof(QS408M) => new QS408M.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(QS408M) => new QS408M.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
            nameof(SPaCe) => new SPaCe.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
					            nameof(SPaCe) => new SPaCe.FileRead(smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null),
 | 
				
			||||||
 | 
				
			|||||||
@ -23,7 +23,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private int _LastDummyRunIndex;
 | 
					    private int _LastDummyRunIndex;
 | 
				
			||||||
    private readonly string[] _CellNames;
 | 
					    private readonly string[] _CellNames;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
 | 
				
			|||||||
@ -14,7 +14,7 @@ namespace Adaptation.FileHandlers.IQSSi;
 | 
				
			|||||||
public class FileRead : Shared.FileRead, IFileRead
 | 
					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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -103,7 +103,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void FileCopy<T>(string reportFullPath, DateTime dateTime, List<T> descriptions) where T : Shared.Properties.IDescription
 | 
					    private void WriteFile<T>(string reportFullPath, DateTime dateTime, List<T> descriptions) where T : Shared.Properties.IDescription
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        bool isDummyRun = false;
 | 
					        bool isDummyRun = false;
 | 
				
			||||||
        string successDirectory = string.Empty;
 | 
					        string successDirectory = string.Empty;
 | 
				
			||||||
@ -111,23 +111,24 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
 | 
					        string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
 | 
				
			||||||
        if (!Directory.Exists(duplicateDirectory))
 | 
					        if (!Directory.Exists(duplicateDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(duplicateDirectory);
 | 
					            _ = Directory.CreateDirectory(duplicateDirectory);
 | 
				
			||||||
        string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
 | 
					        string duplicateFile = Path.Combine(duplicateDirectory, $"{Path.GetFileName(reportFullPath)}.xml");
 | 
				
			||||||
        File.Copy(reportFullPath, duplicateFile, overwrite: true);
 | 
					        string xml = ProcessDataStandardFormat.GetXml(reportFullPath);
 | 
				
			||||||
 | 
					        File.WriteAllText(duplicateFile, xml);
 | 
				
			||||||
        WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
 | 
					        WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(processDataStandardFormat);
 | 
				
			||||||
        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
					        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            FileCopy(reportFullPath, dateTime, descriptions);
 | 
					            WriteFile(reportFullPath, dateTime, descriptions);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -5,17 +5,75 @@ using Adaptation.Shared.Duplicator;
 | 
				
			|||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
using System;
 | 
					using System;
 | 
				
			||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
using System.IO;
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
using System.Text;
 | 
					using System.Text;
 | 
				
			||||||
using System.Text.Json;
 | 
					using System.Text.Json;
 | 
				
			||||||
using System.Threading;
 | 
					using System.Threading;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.FileHandlers.MoveMatchingFiles;
 | 
					namespace Adaptation.FileHandlers.MoveMatchingFiles;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FileRead : Shared.FileRead, IFileRead
 | 
					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) :
 | 
					    internal class PreWith
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal string ErrFile { get; private set; }
 | 
				
			||||||
 | 
					        internal string CheckFile { get; private set; }
 | 
				
			||||||
 | 
					        internal string MatchingFile { get; private set; }
 | 
				
			||||||
 | 
					        internal string CheckDirectory { get; private set; }
 | 
				
			||||||
 | 
					        internal string NoWaitDirectory { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal PreWith(string checkDirectory,
 | 
				
			||||||
 | 
					                         string checkFile,
 | 
				
			||||||
 | 
					                         string errFile,
 | 
				
			||||||
 | 
					                         string matchingFile,
 | 
				
			||||||
 | 
					                         string noWaitDirectory)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            ErrFile = errFile;
 | 
				
			||||||
 | 
					            CheckFile = checkFile;
 | 
				
			||||||
 | 
					            MatchingFile = matchingFile;
 | 
				
			||||||
 | 
					            CheckDirectory = checkDirectory;
 | 
				
			||||||
 | 
					            NoWaitDirectory = noWaitDirectory;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal class Pre
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal string MatchingFile { get; private set; }
 | 
				
			||||||
 | 
					        internal string CheckFile { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal Pre(string matchingFile, string checkFile)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            MatchingFile = matchingFile;
 | 
				
			||||||
 | 
					            CheckFile = checkFile;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal class Post
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal string ErrFile { get; private set; }
 | 
				
			||||||
 | 
					        internal string CheckFile { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal Post(string checkFile, string errFile)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            ErrFile = errFile;
 | 
				
			||||||
 | 
					            CheckFile = checkFile;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private readonly ProcessDataStandardFormatMapping _ProcessDataStandardFormatMapping;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -27,6 +85,12 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            throw new Exception(cellInstanceConnectionName);
 | 
					            throw new Exception(cellInstanceConnectionName);
 | 
				
			||||||
        if (!_IsDuplicator)
 | 
					        if (!_IsDuplicator)
 | 
				
			||||||
            throw new Exception(cellInstanceConnectionName);
 | 
					            throw new Exception(cellInstanceConnectionName);
 | 
				
			||||||
 | 
					        string processDataStandardFormatMappingOldColumnNames = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Process.Data.Standard.Format.Mapping.Old.Column.Names");
 | 
				
			||||||
 | 
					        string processDataStandardFormatMappingNewColumnNames = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Process.Data.Standard.Format.Mapping.New.Column.Names");
 | 
				
			||||||
 | 
					        string processDataStandardFormatMappingColumnIndices = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Process.Data.Standard.Format.Mapping.Column.Indices");
 | 
				
			||||||
 | 
					        _ProcessDataStandardFormatMapping = ProcessDataStandardFormatMapping.Get(processDataStandardFormatMappingOldColumnNames,
 | 
				
			||||||
 | 
					                                                                                 processDataStandardFormatMappingNewColumnNames,
 | 
				
			||||||
 | 
					                                                                                 processDataStandardFormatMappingColumnIndices);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void IFileRead.Move(Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResults, Exception exception)
 | 
					    void IFileRead.Move(Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResults, Exception exception)
 | 
				
			||||||
@ -41,7 +105,8 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        Move(extractResults);
 | 
					        Move(extractResults);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void IFileRead.WaitForThread() => WaitForThread(thread: null, threadExceptions: null);
 | 
					    void IFileRead.WaitForThread() =>
 | 
				
			||||||
 | 
					        WaitForThread(thread: null, threadExceptions: null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string IFileRead.GetEventDescription()
 | 
					    string IFileRead.GetEventDescription()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -88,7 +153,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        DateTime dateTime = DateTime.Now;
 | 
					        DateTime dateTime = DateTime.Now;
 | 
				
			||||||
        results = GetExtractResult(reportFullPath, dateTime);
 | 
					        results = GetExtractResult(reportFullPath, dateTime);
 | 
				
			||||||
        if (results.Item3 is null)
 | 
					        if (results.Item3 is null)
 | 
				
			||||||
            results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(results.Item1, Array.Empty<Test>(), JsonSerializer.Deserialize<JsonElement[]>("[]"), results.Item4);
 | 
					            results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(results.Item1, Array.Empty<Test>(), JsonSerializer.Deserialize<JsonElement[]>("[]") ?? throw new Exception(), results.Item4);
 | 
				
			||||||
        if (results.Item3.Length > 0 && _IsEAFHosted)
 | 
					        if (results.Item3.Length > 0 && _IsEAFHosted)
 | 
				
			||||||
            WritePDSF(this, results.Item3);
 | 
					            WritePDSF(this, results.Item3);
 | 
				
			||||||
        UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
 | 
					        UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
 | 
				
			||||||
@ -104,7 +169,33 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static List<string> GetSearchDirectories(int numberLength, string parentDirectory)
 | 
					    private static ReadOnlyCollection<PreWith> GetPreWithCollection(ReadOnlyCollection<Pre> preCollection)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<PreWith> results = new();
 | 
				
			||||||
 | 
					        string errFile;
 | 
				
			||||||
 | 
					        PreWith preWith;
 | 
				
			||||||
 | 
					        string? checkDirectory;
 | 
				
			||||||
 | 
					        string noWaitDirectory;
 | 
				
			||||||
 | 
					        foreach (Pre pre in preCollection)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            errFile = string.Concat(pre.CheckFile, ".err");
 | 
				
			||||||
 | 
					            checkDirectory = Path.GetDirectoryName(pre.CheckFile);
 | 
				
			||||||
 | 
					            if (string.IsNullOrEmpty(checkDirectory))
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            if (!Directory.Exists(checkDirectory))
 | 
				
			||||||
 | 
					                _ = Directory.CreateDirectory(checkDirectory);
 | 
				
			||||||
 | 
					            noWaitDirectory = Path.Combine(checkDirectory, "NoWaitDirectory");
 | 
				
			||||||
 | 
					            preWith = new(checkDirectory: checkDirectory,
 | 
				
			||||||
 | 
					                          checkFile: pre.CheckFile,
 | 
				
			||||||
 | 
					                          errFile: errFile,
 | 
				
			||||||
 | 
					                          matchingFile: pre.MatchingFile,
 | 
				
			||||||
 | 
					                          noWaitDirectory: noWaitDirectory);
 | 
				
			||||||
 | 
					            results.Add(preWith);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static ReadOnlyCollection<string> GetSearchDirectories(int numberLength, string parentDirectory)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        List<string> results = new();
 | 
					        List<string> results = new();
 | 
				
			||||||
        string[] directories = Directory.GetDirectories(parentDirectory, "*", SearchOption.TopDirectoryOnly);
 | 
					        string[] directories = Directory.GetDirectories(parentDirectory, "*", SearchOption.TopDirectoryOnly);
 | 
				
			||||||
@ -115,10 +206,138 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            results.Add(directory);
 | 
					            results.Add(directory);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        results.Sort();
 | 
					        results.Sort();
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void CreatePointerFile(int numberLength, string parentDirectory, ReadOnlyCollection<string> matchingFiles)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string checkFile;
 | 
				
			||||||
 | 
					        string writeFile;
 | 
				
			||||||
 | 
					        string? directoryName;
 | 
				
			||||||
 | 
					        int parentDirectoryLength = parentDirectory.Length;
 | 
				
			||||||
 | 
					        foreach (string matchingFile in matchingFiles)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            directoryName = Path.GetDirectoryName(matchingFile);
 | 
				
			||||||
 | 
					            if (directoryName is null)
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            checkFile = $"{matchingFile[0]}{directoryName.Substring(parentDirectoryLength + numberLength + 1)}";
 | 
				
			||||||
 | 
					            writeFile = Path.Combine(parentDirectory, $"{directoryName.Substring(parentDirectory.Length + 1, numberLength)}.txt");
 | 
				
			||||||
 | 
					            if (File.Exists(writeFile))
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            File.AppendAllLines(writeFile, new string[] { parentDirectory, matchingFile, directoryName, checkFile });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static ReadOnlyCollection<Pre> GetPreCollection(int numberLength, string parentDirectory, ReadOnlyCollection<string> matchingFiles)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Pre> results = new();
 | 
				
			||||||
 | 
					        Pre pre;
 | 
				
			||||||
 | 
					        string checkFile;
 | 
				
			||||||
 | 
					        int parentDirectoryLength = parentDirectory.Length;
 | 
				
			||||||
 | 
					        foreach (string matchingFile in matchingFiles)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            checkFile = $"{matchingFile[0]}{matchingFile.Substring(parentDirectoryLength + numberLength + 1)}";
 | 
				
			||||||
 | 
					            pre = new(matchingFile, checkFile);
 | 
				
			||||||
 | 
					            results.Add(pre);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private void MoveCollection(DateTime dateTime, ProcessDataStandardFormat processDataStandardFormat, ReadOnlyCollection<PreWith> preWithCollection)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        ReadOnlyCollection<Post> postCollection = GetPostCollection(dateTime, processDataStandardFormat, preWithCollection);
 | 
				
			||||||
 | 
					        if (postCollection.Count != 0)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Thread.Sleep(500);
 | 
				
			||||||
 | 
					            StringBuilder stringBuilder = new();
 | 
				
			||||||
 | 
					            foreach (Post post in postCollection)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (File.Exists(post.ErrFile))
 | 
				
			||||||
 | 
					                    _ = stringBuilder.AppendLine(File.ReadAllText(post.ErrFile));
 | 
				
			||||||
 | 
					                if (File.Exists(post.CheckFile))
 | 
				
			||||||
 | 
					                    _ = stringBuilder.AppendLine($"<{post.CheckFile}> was not consumed by the end!");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (stringBuilder.Length > 0)
 | 
				
			||||||
 | 
					                throw new Exception(stringBuilder.ToString());
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private ReadOnlyCollection<Post> GetPostCollection(DateTime dateTime, ProcessDataStandardFormat processDataStandardFormat, ReadOnlyCollection<PreWith> preWithCollection)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Post> results = new();
 | 
				
			||||||
 | 
					        Post post;
 | 
				
			||||||
 | 
					        long preWait;
 | 
				
			||||||
 | 
					        foreach (PreWith preWith in preWithCollection)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (!_IsEAFHosted)
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            if (!_StaticRuns.TryGetValue(_Logistics.Sequence, out List<Shared.Metrology.WS.Results>? wsResults))
 | 
				
			||||||
 | 
					                wsResults = null;
 | 
				
			||||||
 | 
					            if (processDataStandardFormat.InputPDSF is null)
 | 
				
			||||||
 | 
					                File.Move(preWith.MatchingFile, preWith.CheckFile);
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                ProcessDataStandardFormat.Write(preWith.CheckFile, processDataStandardFormat, wsResults);
 | 
				
			||||||
 | 
					                File.Delete(preWith.MatchingFile);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (Directory.Exists(preWith.NoWaitDirectory))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                post = new(preWith.CheckFile, preWith.ErrFile);
 | 
				
			||||||
 | 
					                results.Add(post);
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (_FileConnectorConfiguration?.FileHandleWaitTime is null)
 | 
				
			||||||
 | 
					                preWait = DateTime.Now.AddMilliseconds(1234).Ticks;
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                preWait = DateTime.Now.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
 | 
				
			||||||
 | 
					            for (short i = 0; i < short.MaxValue; i++)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (DateTime.Now.Ticks > preWait)
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
 | 
					                Thread.Sleep(500);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            for (int i = 0; i < int.MaxValue; i++)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (File.Exists(preWith.ErrFile))
 | 
				
			||||||
 | 
					                    throw new Exception(File.ReadAllText(preWith.ErrFile));
 | 
				
			||||||
 | 
					                if (!File.Exists(preWith.CheckFile))
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
 | 
					                if (new TimeSpan(DateTime.Now.Ticks - dateTime.Ticks).TotalSeconds > _BreakAfterSeconds)
 | 
				
			||||||
 | 
					                    throw new Exception($"Not all files were consumed after {_BreakAfterSeconds} second(s)!");
 | 
				
			||||||
 | 
					                Thread.Sleep(500);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, Array.Empty<Test>(), Array.Empty<JsonElement>(), new List<FileInfo>());
 | 
				
			||||||
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath, _ProcessDataStandardFormatMapping);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
 | 
					        if (!_IsEAFHosted)
 | 
				
			||||||
 | 
					            ProcessDataStandardFormat.Write("../../.pdsf", processDataStandardFormat, wsResults: null);
 | 
				
			||||||
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
 | 
					        int numberLength = 2;
 | 
				
			||||||
 | 
					        long ticks = dateTime.Ticks;
 | 
				
			||||||
 | 
					        string parentParentDirectory = GetParentParent(reportFullPath);
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> searchDirectories = GetSearchDirectories(numberLength, parentParentDirectory);
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> matchingFiles = GetMatchingFiles(ticks, reportFullPath, searchDirectories);
 | 
				
			||||||
 | 
					        if (matchingFiles.Count != searchDirectories.Count)
 | 
				
			||||||
 | 
					            throw new Exception($"Didn't find all files after {_BreakAfterSeconds} second(s)!");
 | 
				
			||||||
 | 
					        if (_IsEAFHosted)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            try
 | 
				
			||||||
 | 
					            { CreatePointerFile(numberLength, parentParentDirectory, matchingFiles); }
 | 
				
			||||||
 | 
					            catch (Exception) { }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        ReadOnlyCollection<Pre> preCollection = GetPreCollection(numberLength, parentParentDirectory, matchingFiles);
 | 
				
			||||||
 | 
					        ReadOnlyCollection<PreWith> preWithCollection = GetPreWithCollection(preCollection);
 | 
				
			||||||
 | 
					        MoveCollection(dateTime, processDataStandardFormat, preWithCollection);
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private List<string> GetMatchingFiles(long ticks, string reportFullPath, List<string> searchDirectories)
 | 
					    private ReadOnlyCollection<string> GetMatchingFiles(long ticks, string reportFullPath, ReadOnlyCollection<string> searchDirectories)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        List<string> results = new();
 | 
					        List<string> results = new();
 | 
				
			||||||
        string[] found;
 | 
					        string[] found;
 | 
				
			||||||
@ -137,129 +356,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return results;
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private static List<(string matchingFile, string checkFile)> GetCollection(int numberLength, string parentDirectory, List<string> matchingFiles)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        List<(string matchingFile, string checkFile)> results = new();
 | 
					 | 
				
			||||||
        string checkFile;
 | 
					 | 
				
			||||||
        int parentDirectoryLength = parentDirectory.Length;
 | 
					 | 
				
			||||||
        foreach (string matchingFile in matchingFiles)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            checkFile = $"{matchingFile[0]}{matchingFile.Substring(parentDirectoryLength + numberLength + 1)}";
 | 
					 | 
				
			||||||
            results.Add(new(matchingFile, checkFile));
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return results;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private static List<(string, string, string, string, string)> GetCollection(List<(string matchingFile, string checkFile)> collection)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        List<(string, string, string, string, string)> results = new();
 | 
					 | 
				
			||||||
        string errFile;
 | 
					 | 
				
			||||||
        string checkDirectory;
 | 
					 | 
				
			||||||
        string noWaitDirectory;
 | 
					 | 
				
			||||||
        foreach ((string matchingFile, string checkFile) in collection)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            errFile = string.Concat(checkFile, ".err");
 | 
					 | 
				
			||||||
            checkDirectory = Path.GetDirectoryName(checkFile);
 | 
					 | 
				
			||||||
            if (!Directory.Exists(checkDirectory))
 | 
					 | 
				
			||||||
                _ = Directory.CreateDirectory(checkDirectory);
 | 
					 | 
				
			||||||
            noWaitDirectory = Path.Combine(checkDirectory, "NoWaitDirectory");
 | 
					 | 
				
			||||||
            results.Add(new(matchingFile, checkFile, errFile, checkDirectory, noWaitDirectory));
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return results;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private void MoveCollection(DateTime dateTime, List<(string matchingFile, string checkFile)> collection)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        long preWait;
 | 
					 | 
				
			||||||
        List<(string checkFile, string errFile)> postCollection = new();
 | 
					 | 
				
			||||||
        foreach ((string matchingFile, string checkFile, string errFile, string checkDirectory, string noWaitDirectory) in GetCollection(collection))
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            File.Move(matchingFile, checkFile);
 | 
					 | 
				
			||||||
            if (Directory.Exists(noWaitDirectory))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                postCollection.Add(new(checkFile, errFile));
 | 
					 | 
				
			||||||
                continue;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            if (_FileConnectorConfiguration?.FileHandleWaitTime is null)
 | 
					 | 
				
			||||||
                preWait = DateTime.Now.AddMilliseconds(1234).Ticks;
 | 
					 | 
				
			||||||
            else
 | 
					 | 
				
			||||||
                preWait = DateTime.Now.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
 | 
					 | 
				
			||||||
            for (short i = 0; i < short.MaxValue; i++)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (DateTime.Now.Ticks > preWait)
 | 
					 | 
				
			||||||
                    break;
 | 
					 | 
				
			||||||
                Thread.Sleep(500);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            for (int i = 0; i < int.MaxValue; i++)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (File.Exists(errFile))
 | 
					 | 
				
			||||||
                    throw new Exception(File.ReadAllText(errFile));
 | 
					 | 
				
			||||||
                if (!File.Exists(checkFile))
 | 
					 | 
				
			||||||
                    break;
 | 
					 | 
				
			||||||
                if (new TimeSpan(DateTime.Now.Ticks - dateTime.Ticks).TotalSeconds > _BreakAfterSeconds)
 | 
					 | 
				
			||||||
                    throw new Exception($"Not all files were consumed after {_BreakAfterSeconds} second(s)!");
 | 
					 | 
				
			||||||
                Thread.Sleep(500);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if (postCollection.Count != 0)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            Thread.Sleep(500);
 | 
					 | 
				
			||||||
            StringBuilder stringBuilder = new();
 | 
					 | 
				
			||||||
            foreach ((string checkFile, string errFile) in postCollection)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (File.Exists(errFile))
 | 
					 | 
				
			||||||
                    _ = stringBuilder.AppendLine(File.ReadAllText(errFile));
 | 
					 | 
				
			||||||
                if (File.Exists(checkFile))
 | 
					 | 
				
			||||||
                    _ = stringBuilder.AppendLine($"<{checkFile}> was not consumed by the end!");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            if (stringBuilder.Length > 0)
 | 
					 | 
				
			||||||
                throw new Exception(stringBuilder.ToString());
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private static void CreatePointerFile(int numberLength, string parentDirectory, List<string> matchingFiles)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
#nullable enable
 | 
					 | 
				
			||||||
        string checkFile;
 | 
					 | 
				
			||||||
        string writeFile;
 | 
					 | 
				
			||||||
        string? directoryName;
 | 
					 | 
				
			||||||
        int parentDirectoryLength = parentDirectory.Length;
 | 
					 | 
				
			||||||
        foreach (string matchingFile in matchingFiles)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            directoryName = Path.GetDirectoryName(matchingFile);
 | 
					 | 
				
			||||||
            if (directoryName is null)
 | 
					 | 
				
			||||||
                continue;
 | 
					 | 
				
			||||||
            checkFile = $"{matchingFile[0]}{directoryName.Substring(parentDirectoryLength + numberLength + 1)}";
 | 
					 | 
				
			||||||
            writeFile = Path.Combine(parentDirectory, $"{directoryName.Substring(parentDirectory.Length + 1, numberLength)}.txt");
 | 
					 | 
				
			||||||
            if (File.Exists(writeFile))
 | 
					 | 
				
			||||||
                continue;
 | 
					 | 
				
			||||||
            File.AppendAllLines(writeFile, new string[] { parentDirectory, matchingFile, directoryName, checkFile });
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
#nullable disable
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    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, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					 | 
				
			||||||
        int numberLength = 2;
 | 
					 | 
				
			||||||
        long ticks = dateTime.Ticks;
 | 
					 | 
				
			||||||
        string parentParentDirectory = GetParentParent(reportFullPath);
 | 
					 | 
				
			||||||
        List<string> searchDirectories = GetSearchDirectories(numberLength, parentParentDirectory);
 | 
					 | 
				
			||||||
        List<string> matchingFiles = GetMatchingFiles(ticks, reportFullPath, searchDirectories);
 | 
					 | 
				
			||||||
        if (matchingFiles.Count != searchDirectories.Count)
 | 
					 | 
				
			||||||
            throw new Exception($"Didn't find all files after {_BreakAfterSeconds} second(s)!");
 | 
					 | 
				
			||||||
        try
 | 
					 | 
				
			||||||
        { CreatePointerFile(numberLength, parentParentDirectory, matchingFiles); }
 | 
					 | 
				
			||||||
        catch (Exception) { }
 | 
					 | 
				
			||||||
        List<(string matchingFile, string checkFile)> collection = GetCollection(numberLength, parentParentDirectory, matchingFiles);
 | 
					 | 
				
			||||||
        MoveCollection(dateTime, collection);
 | 
					 | 
				
			||||||
        return results;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -21,7 +21,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly string _OpenInsightFilePattern;
 | 
					    private readonly string _OpenInsightFilePattern;
 | 
				
			||||||
    private readonly string _OpenInsightApiECDirectory;
 | 
					    private readonly string _OpenInsightApiECDirectory;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -113,90 +113,117 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static string GetLines(List<QS408M.Description> descriptions)
 | 
					    private static string GetLines(Logistics logistics, List<QS408M.Description> descriptions, bool isStratusQual)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        StringBuilder results = new();
 | 
					        StringBuilder results = new();
 | 
				
			||||||
        char del = '\t';
 | 
					        char del = '\t';
 | 
				
			||||||
        QS408M.Description x = descriptions[0];
 | 
					        QS408M.Description x = descriptions[0];
 | 
				
			||||||
        _ = results.Append(x.UniqueId).Append(del).
 | 
					        if (isStratusQual)
 | 
				
			||||||
            Append(x.Date).Append(del).
 | 
					        {
 | 
				
			||||||
            Append(x.Employee).Append(del).
 | 
					            _ = results.Append("Stratus_").Append(logistics.MID).Append('_').Append(logistics.DateTimeFromSequence.ToString("yyyyMMddhhmmssfff")).Append(del).
 | 
				
			||||||
            Append(x.Recipe).Append(del).
 | 
					                Append(x.Date).Append(del).
 | 
				
			||||||
            Append(x.Reactor).Append(del).
 | 
					                Append(logistics.JobID).Append(del).
 | 
				
			||||||
            Append(x.RDS).Append(del).
 | 
					                Append("FQA Thickness").Append(del).
 | 
				
			||||||
            Append(x.PSN).Append(del).
 | 
					                Append(x.Employee).Append(del).
 | 
				
			||||||
            Append(x.Layer).Append(del).
 | 
					                Append(x.Recipe).Append(del).
 | 
				
			||||||
            Append(x.Zone).Append(del).
 | 
					                Append(x.Reactor).Append(del).
 | 
				
			||||||
            Append(x.Cassette).Append(del).
 | 
					                Append(x.RDS).Append(del).
 | 
				
			||||||
            Append(x.Wafer).Append(del).
 | 
					                Append(x.PSN).Append(del).
 | 
				
			||||||
            Append(x.RVThickness);
 | 
					                Append(x.Lot).Append(del).
 | 
				
			||||||
        for (int i = 0; i < descriptions.Count; i++)
 | 
					                Append(x.Cassette).Append(del).
 | 
				
			||||||
            _ = results.Append(del).Append(descriptions[i].Position).
 | 
					                Append(x.MeanThickness);
 | 
				
			||||||
                        Append(del).Append(descriptions[i].Thickness);
 | 
					            for (int i = 0; i < descriptions.Count; i++)
 | 
				
			||||||
 | 
					                _ = results.Append(del).Append(descriptions[i].Slot).
 | 
				
			||||||
 | 
					                            Append(del).Append(descriptions[i].Thickness);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _ = results.Append("Bio-Rad ").Append(x.UniqueId).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Date).Append(del).
 | 
				
			||||||
 | 
					                Append(x.ThicknessFourteenCriticalPointsAverage).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Recipe).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Reactor).Append(del).
 | 
				
			||||||
 | 
					                Append(x.RDS).Append(del).
 | 
				
			||||||
 | 
					                Append(x.PSN).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Layer).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Zone).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Cassette).Append(del).
 | 
				
			||||||
 | 
					                Append(x.Wafer).Append(del).
 | 
				
			||||||
 | 
					                Append(x.RVThickness);
 | 
				
			||||||
 | 
					            for (int i = 0; i < descriptions.Count; i++)
 | 
				
			||||||
 | 
					                _ = results.Append(del).Append(descriptions[i].Position).
 | 
				
			||||||
 | 
					                            Append(del).Append(descriptions[i].Thickness);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return results.ToString();
 | 
					        return results.ToString();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, string logistics, List<QS408M.Description> descriptions, Test[] tests)
 | 
					    private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, List<QS408M.Description> descriptions, Test[] tests)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        string duplicateFile;
 | 
				
			||||||
        bool isDummyRun = false;
 | 
					        bool isDummyRun = false;
 | 
				
			||||||
        List<(Shared.Properties.IScopeInfo, string)> collection = new();
 | 
					        List<(Shared.Properties.IScopeInfo, string)> collection = new();
 | 
				
			||||||
        string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
 | 
					        string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
 | 
				
			||||||
 | 
					        bool isStratusQual = _Logistics.MesEntity is "BIORAD4" or "BIORAD5" && _Logistics.MesEntity == _Logistics.ProcessJobID;
 | 
				
			||||||
 | 
					        if (isStratusQual)
 | 
				
			||||||
 | 
					            duplicateDirectory = duplicateDirectory.Replace("MET08THFTIRQS408M", "MET08THFTIRSTRATUS");
 | 
				
			||||||
        if (!Directory.Exists(duplicateDirectory))
 | 
					        if (!Directory.Exists(duplicateDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(duplicateDirectory);
 | 
					            _ = Directory.CreateDirectory(duplicateDirectory);
 | 
				
			||||||
        string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
 | 
					        string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
 | 
				
			||||||
        if (!Directory.Exists(Path.Combine(duplicateDirectory, "1")))
 | 
					        if (descriptions.Count == 0 || tests.Length == 0)
 | 
				
			||||||
 | 
					            duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            string parentParent = GetParentParent(_FileConnectorConfiguration.SourceFileLocation);
 | 
					            long? subgroupId;
 | 
				
			||||||
            if (parentParent.Contains(_CellInstanceName))
 | 
					            string fileName = Path.GetFileName(reportFullPath);
 | 
				
			||||||
                parentParent = Path.GetDirectoryName(parentParent);
 | 
					            long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
 | 
				
			||||||
            duplicateDirectory = Path.Combine(parentParent, "Data");
 | 
					            long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
 | 
				
			||||||
            if (!Directory.Exists(duplicateDirectory))
 | 
					            if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN))
 | 
				
			||||||
                _ = Directory.CreateDirectory(duplicateDirectory);
 | 
					                subgroupId = null;
 | 
				
			||||||
        }
 | 
					            else
 | 
				
			||||||
        string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
 | 
					                (subgroupId, int? _, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
 | 
				
			||||||
        if (descriptions.Count != 0 && tests.Length != 0)
 | 
					            if (isStratusQual)
 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            string lines = GetLines(descriptions);
 | 
					 | 
				
			||||||
            if (!string.IsNullOrEmpty(lines))
 | 
					 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                long? subGroupId;
 | 
					                string lines = GetLines(_Logistics, descriptions, isStratusQual);
 | 
				
			||||||
                long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
 | 
					                if (subgroupId is null)
 | 
				
			||||||
                long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
 | 
					 | 
				
			||||||
                if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN))
 | 
					 | 
				
			||||||
                    subGroupId = null;
 | 
					 | 
				
			||||||
                else
 | 
					 | 
				
			||||||
                    (subGroupId, int? _, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
 | 
					 | 
				
			||||||
                if (subGroupId is null)
 | 
					 | 
				
			||||||
                    collection.Add(new(new ScopeInfo(tests[0], _OpenInsightFilePattern), lines));
 | 
					                    collection.Add(new(new ScopeInfo(tests[0], _OpenInsightFilePattern), lines));
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                    collection.Add(new(new ScopeInfo(tests[0], $"{subGroupId.Value} {_OpenInsightFilePattern}"), lines));
 | 
					                    collection.Add(new(new ScopeInfo(tests[0], $"{subgroupId.Value} {_OpenInsightFilePattern}"), lines));
 | 
				
			||||||
                if (_StaticRuns.TryGetValue(_Logistics.Sequence, out List<string> values))
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    if (values.Count != 1)
 | 
					 | 
				
			||||||
                        throw new Exception($"{nameof(_StaticRuns)} {values.Count} != 1 {_Logistics.Sequence}!");
 | 
					 | 
				
			||||||
                    values[0] = $"{values[0]}|{subGroupId}";
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00");
 | 
					 | 
				
			||||||
                FromIQS.Save(_OpenInsightApiECDirectory, _Logistics, reportFullPath, logistics, descriptions.First(), lines, subGroupId, weekOfYear);
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            if (_StaticRuns.TryGetValue(_Logistics.Sequence, out List<WS.Results> wsResults))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (wsResults is null || wsResults.Count != 1)
 | 
				
			||||||
 | 
					                    throw new NullReferenceException($"{nameof(wsResults)} {wsResults?.Count} != 1 {_Logistics.Sequence}!");
 | 
				
			||||||
 | 
					                lock (_StaticRuns)
 | 
				
			||||||
 | 
					                    wsResults[0] = WS.Results.Get(wsResults[0], subgroupId);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (!fileName.StartsWith("Viewer"))
 | 
				
			||||||
 | 
					                duplicateFile = Path.Combine(duplicateDirectory, $"{subgroupId} {fileName}".TrimStart());
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                duplicateFile = Path.Combine(duplicateDirectory, $"{$"Viewer {subgroupId}".TrimEnd()} {fileName.Replace("Viewer", string.Empty)}");
 | 
				
			||||||
 | 
					            string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00");
 | 
				
			||||||
 | 
					            FromIQS.Save(_OpenInsightApiECDirectory, _Logistics, reportFullPath, descriptions.First(), subgroupId, weekOfYear);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (!isStratusQual)
 | 
				
			||||||
 | 
					                File.Copy(reportFullPath, duplicateFile, overwrite: true);
 | 
				
			||||||
            WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
 | 
					            WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        string[] lines = File.ReadAllLines(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath, lines);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(reportFullPath, lines, processDataStandardFormat);
 | 
				
			||||||
        // List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
					 | 
				
			||||||
        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            SaveOpenInsightFile(reportFullPath, dateTime, pdsf.Item1, descriptions, tests);
 | 
					            SaveOpenInsightFile(reportFullPath, dateTime, descriptions, tests);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics[0]), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -325,77 +325,18 @@ public class FromIQS
 | 
				
			|||||||
        return new(result, count, commandText);
 | 
					        return new(result, count, commandText);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static string GetJson(Logistics logistics, string logisticLines, QS408M.Description description)
 | 
					    internal static void Save(string openInsightApiECDirectory, Logistics logistics, string reportFullPath, QS408M.Description description, long? subGroupId, string weekOfYear)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string result;
 | 
					 | 
				
			||||||
        StringBuilder stringBuilder = new();
 | 
					 | 
				
			||||||
        var @object = new
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            description.MesEntity,
 | 
					 | 
				
			||||||
            description.Employee,
 | 
					 | 
				
			||||||
            description.Layer,
 | 
					 | 
				
			||||||
            description.PSN,
 | 
					 | 
				
			||||||
            description.RDS,
 | 
					 | 
				
			||||||
            description.Reactor,
 | 
					 | 
				
			||||||
            description.Recipe,
 | 
					 | 
				
			||||||
            description.Zone,
 | 
					 | 
				
			||||||
            logistics.DateTimeFromSequence.Ticks
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
        string[] pair;
 | 
					 | 
				
			||||||
        string safeValue;
 | 
					 | 
				
			||||||
        string[] segments;
 | 
					 | 
				
			||||||
        string serializerValue;
 | 
					 | 
				
			||||||
        foreach (string line in logisticLines.Split(new string[] { Environment.NewLine }, StringSplitOptions.None))
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            segments = line.Split('\t');
 | 
					 | 
				
			||||||
            if (segments.Length < 2)
 | 
					 | 
				
			||||||
                continue;
 | 
					 | 
				
			||||||
            segments = segments[1].Split(';');
 | 
					 | 
				
			||||||
            _ = stringBuilder.Append('{');
 | 
					 | 
				
			||||||
            foreach (string segment in segments)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                pair = segment.Split('=');
 | 
					 | 
				
			||||||
                if (pair.Length != 2 || pair[0].Length < 3)
 | 
					 | 
				
			||||||
                    continue;
 | 
					 | 
				
			||||||
                serializerValue = JsonSerializer.Serialize(pair[1]);
 | 
					 | 
				
			||||||
                safeValue = serializerValue.Substring(1, serializerValue.Length - 2);
 | 
					 | 
				
			||||||
                _ = stringBuilder.Append('"').Append(pair[0].Substring(2)).Append('"').Append(':').Append('"').Append(safeValue).Append('"').Append(',');
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            if (stringBuilder.Length > 0)
 | 
					 | 
				
			||||||
                _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
					 | 
				
			||||||
            _ = stringBuilder.Append('}').Append(',');
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if (stringBuilder.Length > 0)
 | 
					 | 
				
			||||||
            _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
					 | 
				
			||||||
        _ = stringBuilder.Append(']').Append('}');
 | 
					 | 
				
			||||||
        _ = stringBuilder.Insert(0, ",\"Logistics\":[");
 | 
					 | 
				
			||||||
        string json = JsonSerializer.Serialize(@object);
 | 
					 | 
				
			||||||
        _ = stringBuilder.Insert(0, json.Substring(0, json.Length - 1));
 | 
					 | 
				
			||||||
        JsonElement? jsonElement = JsonSerializer.Deserialize<JsonElement>(stringBuilder.ToString());
 | 
					 | 
				
			||||||
        result = jsonElement is null ? "{}" : JsonSerializer.Serialize(jsonElement, new JsonSerializerOptions { WriteIndented = true });
 | 
					 | 
				
			||||||
        return result;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    internal static void Save(string openInsightApiECDirectory, Logistics logistics, string reportFullPath, string logisticLines, QS408M.Description description, string lines, long? subGroupId, string weekOfYear)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        string checkFile;
 | 
					 | 
				
			||||||
        string fileName = Path.GetFileName(reportFullPath);
 | 
					        string fileName = Path.GetFileName(reportFullPath);
 | 
				
			||||||
        string json = GetJson(logistics, logisticLines, description);
 | 
					 | 
				
			||||||
        string? ecPathRoot = Path.GetPathRoot(openInsightApiECDirectory);
 | 
					        string? ecPathRoot = Path.GetPathRoot(openInsightApiECDirectory);
 | 
				
			||||||
        bool ecExists = ecPathRoot is not null && Directory.Exists(ecPathRoot);
 | 
					        bool ecExists = ecPathRoot is not null && Directory.Exists(ecPathRoot);
 | 
				
			||||||
        string weekYear = $"{logistics.DateTimeFromSequence:yyyy}_Week_{weekOfYear}";
 | 
					        string weekYear = $"{logistics.DateTimeFromSequence:yyyy}_Week_{weekOfYear}";
 | 
				
			||||||
        string ecDirectory = Path.Combine(openInsightApiECDirectory, weekYear, $"-{description.PSN}", $"-{description.Reactor}", $"-{description.RDS}", $"-{subGroupId}");
 | 
					        string ecDirectory = Path.Combine(openInsightApiECDirectory, weekYear, $"-{description.PSN}", $"-{description.Reactor}", $"-{description.RDS}", $"-{subGroupId}");
 | 
				
			||||||
        if (ecExists && !Directory.Exists(ecDirectory))
 | 
					        if (ecExists && !Directory.Exists(ecDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(ecDirectory);
 | 
					            _ = Directory.CreateDirectory(ecDirectory);
 | 
				
			||||||
        checkFile = Path.Combine(ecDirectory, fileName);
 | 
					        string checkFile = Path.Combine(ecDirectory, fileName);
 | 
				
			||||||
        if (ecExists && !File.Exists(checkFile))
 | 
					        if (ecExists && !File.Exists(checkFile))
 | 
				
			||||||
            File.Copy(reportFullPath, checkFile);
 | 
					            File.Copy(reportFullPath, checkFile);
 | 
				
			||||||
        checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt");
 | 
					 | 
				
			||||||
        if (ecExists && !File.Exists(checkFile))
 | 
					 | 
				
			||||||
            File.WriteAllText(checkFile, lines);
 | 
					 | 
				
			||||||
        checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json");
 | 
					 | 
				
			||||||
        if (ecExists && !File.Exists(checkFile))
 | 
					 | 
				
			||||||
            File.WriteAllText(checkFile, json);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static string GetCommandText(string[] iqsCopyValues)
 | 
					    private static string GetCommandText(string[] iqsCopyValues)
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly string _OpenInsightMetrologyViewerAPI;
 | 
					    private readonly string _OpenInsightMetrologyViewerAPI;
 | 
				
			||||||
    private readonly string _OpenInsightMetrologyViewerFileShare;
 | 
					    private readonly string _OpenInsightMetrologyViewerFileShare;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -110,10 +110,10 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void SendData(string reportFullPath, DateTime dateTime, List<QS408M.Description> descriptions)
 | 
					    private void SendData(string reportFullPath, DateTime dateTime, JsonElement[] jsonElements, List<QS408M.Description> descriptions)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string checkDirectory;
 | 
					        string checkDirectory;
 | 
				
			||||||
        WSRequest wsRequest = new(this, _Logistics, descriptions);
 | 
					        WSRequest wsRequest = new(this, _Logistics, jsonElements, descriptions);
 | 
				
			||||||
        int weekOfYear = _Calendar.GetWeekOfYear(dateTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
 | 
					        int weekOfYear = _Calendar.GetWeekOfYear(dateTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
 | 
				
			||||||
        string directory = Path.Combine(_OpenInsightMetrologyViewerFileShare, dateTime.Year.ToString(), $"WW{weekOfYear:00}");
 | 
					        string directory = Path.Combine(_OpenInsightMetrologyViewerFileShare, dateTime.Year.ToString(), $"WW{weekOfYear:00}");
 | 
				
			||||||
        checkDirectory = Path.Combine(directory, _Logistics.Sequence.ToString());
 | 
					        checkDirectory = Path.Combine(directory, _Logistics.Sequence.ToString());
 | 
				
			||||||
@ -121,16 +121,16 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            _ = Directory.CreateDirectory(checkDirectory);
 | 
					            _ = Directory.CreateDirectory(checkDirectory);
 | 
				
			||||||
        File.Copy(reportFullPath, Path.Combine(checkDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
					        File.Copy(reportFullPath, Path.Combine(checkDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
				
			||||||
        (string jsonResults, WS.Results wsResults) = WS.SendData(_OpenInsightMetrologyViewerAPI, _Logistics.Sequence, directory, wsRequest);
 | 
					        (string jsonResults, WS.Results wsResults) = WS.SendData(_OpenInsightMetrologyViewerAPI, _Logistics.Sequence, directory, wsRequest);
 | 
				
			||||||
        if (!wsResults.Success)
 | 
					        if (wsResults.Success is null || !wsResults.Success.Value)
 | 
				
			||||||
            throw new Exception(wsResults.ToString());
 | 
					            throw new Exception(jsonResults);
 | 
				
			||||||
        _Log.Debug(wsResults.HeaderID);
 | 
					        _Log.Debug(wsResults.HeaderId);
 | 
				
			||||||
        lock (_StaticRuns)
 | 
					        lock (_StaticRuns)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!_StaticRuns.ContainsKey(_Logistics.Sequence))
 | 
					            if (!_StaticRuns.ContainsKey(_Logistics.Sequence))
 | 
				
			||||||
                _StaticRuns.Add(_Logistics.Sequence, new());
 | 
					                _StaticRuns.Add(_Logistics.Sequence, new());
 | 
				
			||||||
            _StaticRuns[_Logistics.Sequence].Add(jsonResults);
 | 
					            _StaticRuns[_Logistics.Sequence].Add(wsResults);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        checkDirectory = Path.Combine(directory, $"-{wsResults.HeaderID}");
 | 
					        checkDirectory = Path.Combine(directory, $"-{wsResults.HeaderId}");
 | 
				
			||||||
        if (!Directory.Exists(checkDirectory))
 | 
					        if (!Directory.Exists(checkDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(checkDirectory);
 | 
					            _ = Directory.CreateDirectory(checkDirectory);
 | 
				
			||||||
        File.Copy(reportFullPath, Path.Combine(checkDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
					        File.Copy(reportFullPath, Path.Combine(checkDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
				
			||||||
@ -139,15 +139,16 @@ 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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        string[] lines = File.ReadAllLines(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath, lines);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(reportFullPath, lines, processDataStandardFormat);
 | 
				
			||||||
        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            SendData(reportFullPath, dateTime, descriptions);
 | 
					            SendData(reportFullPath, dateTime, jsonElements, descriptions);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -15,10 +15,12 @@ public class WSRequest
 | 
				
			|||||||
    //
 | 
					    //
 | 
				
			||||||
    public int Id { get; set; }
 | 
					    public int Id { get; set; }
 | 
				
			||||||
    public string Batch { get; set; }
 | 
					    public string Batch { get; set; }
 | 
				
			||||||
 | 
					    public string AttemptCounter { get; set; }
 | 
				
			||||||
    public string Cassette { get; set; }
 | 
					    public string Cassette { get; set; }
 | 
				
			||||||
    public string CellName { get; set; }
 | 
					    public string CellName { get; set; }
 | 
				
			||||||
    public string Date { get; set; }
 | 
					    public string Date { get; set; }
 | 
				
			||||||
    public string FilePath { get; set; }
 | 
					    public string FilePath { get; set; }
 | 
				
			||||||
 | 
					    public string IndexOf { get; set; }
 | 
				
			||||||
    public string Layer { get; set; }
 | 
					    public string Layer { get; set; }
 | 
				
			||||||
    public string MeanThickness { get; set; }
 | 
					    public string MeanThickness { get; set; }
 | 
				
			||||||
    public string Op { get; set; }
 | 
					    public string Op { get; set; }
 | 
				
			||||||
@ -38,7 +40,7 @@ public class WSRequest
 | 
				
			|||||||
    [Obsolete("For json")] public WSRequest() { }
 | 
					    [Obsolete("For json")] public WSRequest() { }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma warning disable IDE0060
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
    internal WSRequest(IFileRead fileRead, Logistics logistics, List<QS408M.Description> descriptions, string processDataStandardFormat = null)
 | 
					    internal WSRequest(IFileRead fileRead, Logistics logistics, JsonElement[] jsonElements, List<QS408M.Description> descriptions, string processDataStandardFormat = null)
 | 
				
			||||||
#pragma warning restore IDE0060
 | 
					#pragma warning restore IDE0060
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Id = -1;
 | 
					        Id = -1;
 | 
				
			||||||
@ -49,18 +51,20 @@ public class WSRequest
 | 
				
			|||||||
        Details = new List<QS408M.Detail>();
 | 
					        Details = new List<QS408M.Detail>();
 | 
				
			||||||
        //Header
 | 
					        //Header
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Batch = x.Lot;
 | 
					            AttemptCounter = x.AttemptCounter;
 | 
				
			||||||
 | 
					            Batch = x.Lot; // different name
 | 
				
			||||||
            Cassette = x.Cassette;
 | 
					            Cassette = x.Cassette;
 | 
				
			||||||
            Date = x.Date;
 | 
					            Date = x.Date;
 | 
				
			||||||
            Op = x.Employee;
 | 
					            IndexOf = x.IndexOf;
 | 
				
			||||||
            Layer = x.Layer;
 | 
					            Layer = x.Layer;
 | 
				
			||||||
            MeanThickness = x.MeanThickness;
 | 
					            MeanThickness = x.MeanThickness;
 | 
				
			||||||
            PSN = x.PSN;
 | 
					            Op = x.Employee; // different name
 | 
				
			||||||
            PassFail = x.PassFail;
 | 
					            PassFail = x.PassFail;
 | 
				
			||||||
 | 
					            PSN = x.PSN;
 | 
				
			||||||
            RDS = x.RDS;
 | 
					            RDS = x.RDS;
 | 
				
			||||||
            RVThickness = x.RVThickness;
 | 
					 | 
				
			||||||
            Reactor = x.Reactor;
 | 
					            Reactor = x.Reactor;
 | 
				
			||||||
            Recipe = x.Recipe;
 | 
					            Recipe = x.Recipe;
 | 
				
			||||||
 | 
					            RVThickness = x.RVThickness;
 | 
				
			||||||
            StdDev = x.StdDev;
 | 
					            StdDev = x.StdDev;
 | 
				
			||||||
            Title = x.Title;
 | 
					            Title = x.Title;
 | 
				
			||||||
            UniqueId = x.UniqueId;
 | 
					            UniqueId = x.UniqueId;
 | 
				
			||||||
@ -80,28 +84,33 @@ public class WSRequest
 | 
				
			|||||||
            Details.Add(detail);
 | 
					            Details.Add(detail);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        Date ??= logistics.DateTimeFromSequence.ToString();
 | 
					        Date ??= logistics.DateTimeFromSequence.ToString();
 | 
				
			||||||
        if (UniqueId is null && Details.Count != 0)
 | 
					        UniqueId = $"{logistics.JobID}_{logistics.MID}_{logistics.DateTimeFromSequence:yyyyMMddHHmmssffff}";
 | 
				
			||||||
            UniqueId = Details[0].HeaderUniqueId;
 | 
					        for (int i = 0; i < Details.Count; i++)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Details[i].HeaderUniqueId = UniqueId;
 | 
				
			||||||
 | 
					            Details[i].UniqueId = $"{logistics.JobID}_{logistics.MID}_{logistics.DateTimeFromSequence:yyyyMMddHHmmssffff}_Item-{i + 1}";
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    internal static long GetHeaderId(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, string openInsightMetrologyViewerFileShare, int weekOfYear, string json, List<QS408M.Description> descriptions)
 | 
					    internal static long GetHeaderId(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, string openInsightMetrologyViewerFileShare, int weekOfYear, WS.Results results, JsonElement[] jsonElements, List<QS408M.Description> descriptions)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        long result;
 | 
					        long result;
 | 
				
			||||||
        if (string.IsNullOrEmpty(json))
 | 
					        if (results is not null && results.HeaderId is not null)
 | 
				
			||||||
 | 
					            result = results.HeaderId.Value;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            WSRequest wsRequest = new(fileRead, logistics, descriptions);
 | 
					            WSRequest wsRequest = new(fileRead, logistics, jsonElements, descriptions);
 | 
				
			||||||
            string directory = Path.Combine(openInsightMetrologyViewerFileShare, logistics.DateTimeFromSequence.Year.ToString(), $"WW{weekOfYear:00}");
 | 
					            string directory = Path.Combine(openInsightMetrologyViewerFileShare, logistics.DateTimeFromSequence.Year.ToString(), $"WW{weekOfYear:00}");
 | 
				
			||||||
            (json, WS.Results wsResults) = WS.SendData(openInsightMetrologyViewerAPI, logistics.Sequence, directory, wsRequest);
 | 
					            (_, WS.Results wsResults) = WS.SendData(openInsightMetrologyViewerAPI, logistics.Sequence, directory, wsRequest);
 | 
				
			||||||
            if (!wsResults.Success)
 | 
					            if (wsResults.Success is null || !wsResults.Success.Value)
 | 
				
			||||||
                throw new Exception(wsResults.ToString());
 | 
					                throw new Exception(wsResults.ToString());
 | 
				
			||||||
 | 
					            result = wsResults.HeaderId.Value;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        WS.Results metrologyWSRequest = JsonSerializer.Deserialize<WS.Results>(json, new JsonSerializerOptions { PropertyNameCaseInsensitive = true });
 | 
					 | 
				
			||||||
        result = metrologyWSRequest.HeaderID;
 | 
					 | 
				
			||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma warning disable IDE0060
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
    internal static void PostOpenInsightMetrologyViewerAttachments(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, List<QS408M.Description> descriptions, string matchDirectory, string subGroupId, long headerId, string headerIdDirectory)
 | 
					    internal static void PostOpenInsightMetrologyViewerAttachments(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, List<QS408M.Description> descriptions, string matchDirectory, WS.Results results, string headerIdDirectory)
 | 
				
			||||||
#pragma warning restore IDE0060
 | 
					#pragma warning restore IDE0060
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly string _OpenInsightMetrologyViewerAPI;
 | 
					    private readonly string _OpenInsightMetrologyViewerAPI;
 | 
				
			||||||
    private readonly string _OpenInsightMetrologyViewerFileShare;
 | 
					    private readonly string _OpenInsightMetrologyViewerFileShare;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -135,32 +135,27 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void PostOpenInsightMetrologyViewerAttachments(List<QS408M.Description> descriptions)
 | 
					    private void PostOpenInsightMetrologyViewerAttachments(JsonElement[] jsonElements, List<QS408M.Description> descriptions)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string? json;
 | 
					        Shared.Metrology.WS.Results? results;
 | 
				
			||||||
        string? subGroupId;
 | 
					 | 
				
			||||||
        string jobIdDirectory = Path.Combine(Path.GetDirectoryName(_FileConnectorConfiguration.AlternateTargetFolder) ?? throw new Exception(), _Logistics.JobID);
 | 
					        string jobIdDirectory = Path.Combine(Path.GetDirectoryName(_FileConnectorConfiguration.AlternateTargetFolder) ?? throw new Exception(), _Logistics.JobID);
 | 
				
			||||||
        if (!Directory.Exists(jobIdDirectory))
 | 
					        if (!Directory.Exists(jobIdDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(jobIdDirectory);
 | 
					            _ = Directory.CreateDirectory(jobIdDirectory);
 | 
				
			||||||
        string[] matchDirectories = GetInProcessDirectory(jobIdDirectory);
 | 
					        string[] matchDirectories = GetInProcessDirectory(jobIdDirectory);
 | 
				
			||||||
        if (!_StaticRuns.TryGetValue(_Logistics.Sequence, out List<string>? values))
 | 
					        if (!_StaticRuns.TryGetValue(_Logistics.Sequence, out List<Shared.Metrology.WS.Results>? wsResults))
 | 
				
			||||||
            (json, subGroupId) = (null, null);
 | 
					            results = null;
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (values.Count != 1)
 | 
					            if (wsResults is null || wsResults.Count != 1)
 | 
				
			||||||
                throw new Exception($"{nameof(_StaticRuns)} {values.Count} != 1 {_Logistics.Sequence}!");
 | 
					                throw new NullReferenceException($"{nameof(wsResults)} {wsResults?.Count} != 1 {_Logistics.Sequence}!");
 | 
				
			||||||
            string[] segments = values[0].Split(new string[] { "|" }, StringSplitOptions.None);
 | 
					            results = wsResults[0];
 | 
				
			||||||
            json = segments[0];
 | 
					 | 
				
			||||||
            subGroupId = segments.Length > 1 ? segments[1] : null;
 | 
					 | 
				
			||||||
            lock (_StaticRuns)
 | 
					 | 
				
			||||||
                _ = _StaticRuns.Remove(_Logistics.Sequence);
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        int weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
 | 
					        int weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
 | 
				
			||||||
        long headerId = !_IsEAFHosted ? -1 : OpenInsightMetrologyViewer.WSRequest.GetHeaderId(this, _Logistics, _OpenInsightMetrologyViewerAPI, _OpenInsightMetrologyViewerFileShare, weekOfYear, json, descriptions);
 | 
					        long headerId = !_IsEAFHosted ? -1 : OpenInsightMetrologyViewer.WSRequest.GetHeaderId(this, _Logistics, _OpenInsightMetrologyViewerAPI, _OpenInsightMetrologyViewerFileShare, weekOfYear, results, jsonElements, descriptions);
 | 
				
			||||||
        string? headerIdDirectory = GetHeaderIdDirectory(headerId);
 | 
					        string? headerIdDirectory = GetHeaderIdDirectory(headerId);
 | 
				
			||||||
        if (string.IsNullOrEmpty(headerIdDirectory))
 | 
					        if (string.IsNullOrEmpty(headerIdDirectory))
 | 
				
			||||||
            throw new Exception($"Didn't find header id directory <{headerId}>");
 | 
					            throw new Exception($"Didn't find header id directory <{headerId}>");
 | 
				
			||||||
        OpenInsightMetrologyViewer.WSRequest.PostOpenInsightMetrologyViewerAttachments(this, _Logistics, _OpenInsightMetrologyViewerAPI, descriptions, matchDirectories[0], subGroupId, headerId, headerIdDirectory);
 | 
					        OpenInsightMetrologyViewer.WSRequest.PostOpenInsightMetrologyViewerAttachments(this, _Logistics, _OpenInsightMetrologyViewerAPI, descriptions, matchDirectories[0], results, headerIdDirectory);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
					    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
				
			||||||
@ -168,15 +163,16 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        if (dateTime == DateTime.MinValue)
 | 
					        if (dateTime == DateTime.MinValue)
 | 
				
			||||||
            throw new ArgumentNullException(nameof(dateTime));
 | 
					            throw new ArgumentNullException(nameof(dateTime));
 | 
				
			||||||
        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        string[] lines = File.ReadAllLines(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath, lines);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(reportFullPath, lines, processDataStandardFormat);
 | 
				
			||||||
        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            PostOpenInsightMetrologyViewerAttachments(descriptions);
 | 
					            PostOpenInsightMetrologyViewerAttachments(jsonElements, descriptions);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly string _JobIdParentDirectory;
 | 
					    private readonly string _JobIdParentDirectory;
 | 
				
			||||||
    private readonly string _JobIdProcessParentDirectory;
 | 
					    private readonly string _JobIdProcessParentDirectory;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -108,7 +108,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void DirectoryMove(string reportFullPath, DateTime dateTime, List<QS408M.Description> descriptions)
 | 
					    private void DirectoryMove(string reportFullPath, DateTime dateTime, JsonElement[] jsonElements, List<QS408M.Description> descriptions)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (dateTime == DateTime.MinValue)
 | 
					        if (dateTime == DateTime.MinValue)
 | 
				
			||||||
            throw new ArgumentNullException(nameof(dateTime));
 | 
					            throw new ArgumentNullException(nameof(dateTime));
 | 
				
			||||||
@ -122,40 +122,68 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            throw new Exception("Didn't find directory by logistics sequence");
 | 
					            throw new Exception("Didn't find directory by logistics sequence");
 | 
				
			||||||
        if (fileInfo.Exists && fileInfo.LastWriteTime < fileInfo.CreationTime)
 | 
					        if (fileInfo.Exists && fileInfo.LastWriteTime < fileInfo.CreationTime)
 | 
				
			||||||
            File.SetLastWriteTime(reportFullPath, fileInfo.CreationTime);
 | 
					            File.SetLastWriteTime(reportFullPath, fileInfo.CreationTime);
 | 
				
			||||||
        OpenInsightMetrologyViewer.WSRequest wsRequest = new(this, _Logistics, descriptions);
 | 
					        OpenInsightMetrologyViewer.WSRequest wsRequest = new(this, _Logistics, jsonElements, descriptions);
 | 
				
			||||||
        JsonSerializerOptions jsonSerializerOptions = new() { WriteIndented = true };
 | 
					        JsonSerializerOptions jsonSerializerOptions = new() { WriteIndented = true };
 | 
				
			||||||
        string json = JsonSerializer.Serialize(wsRequest, wsRequest.GetType(), jsonSerializerOptions);
 | 
					        string json = JsonSerializer.Serialize(wsRequest, wsRequest.GetType(), jsonSerializerOptions);
 | 
				
			||||||
        string directoryName = $"{Path.GetFileName(matchDirectories[0]).Split(new string[] { logisticsSequence }, StringSplitOptions.None)[0]}{_Logistics.DateTimeFromSequence:yyyy-MM-dd_hh;mm_tt_}{DateTime.Now.Ticks - _Logistics.Sequence}";
 | 
					        string directoryName = $"{Path.GetFileName(matchDirectories[0]).Split(new string[] { logisticsSequence }, StringSplitOptions.None)[0]}{_Logistics.DateTimeFromSequence:yyyy-MM-dd_hh;mm_tt_}{DateTime.Now.Ticks - _Logistics.Sequence}";
 | 
				
			||||||
        string destinationJobIdDirectory = Path.Combine(_JobIdProcessParentDirectory, _Logistics.JobID, directoryName);
 | 
					        string destinationJobIdDirectory = Path.Combine(_JobIdProcessParentDirectory, _Logistics.JobID, directoryName);
 | 
				
			||||||
        string sequenceDirectory = Path.Combine(destinationJobIdDirectory, logisticsSequence);
 | 
					        string sequenceDirectory = Path.Combine(destinationJobIdDirectory, logisticsSequence);
 | 
				
			||||||
        string jsonFileName = Path.Combine(sequenceDirectory, $"{Path.GetFileNameWithoutExtension(reportFullPath)}.json");
 | 
					        string jsonFileName = Path.Combine(sequenceDirectory, $"{Path.GetFileNameWithoutExtension(reportFullPath)}.json");
 | 
				
			||||||
 | 
					        MoveMatchingFile(jobIdDirectory, matchDirectories[0]);
 | 
				
			||||||
        Directory.Move(matchDirectories[0], destinationJobIdDirectory);
 | 
					        Directory.Move(matchDirectories[0], destinationJobIdDirectory);
 | 
				
			||||||
        if (!Directory.Exists(sequenceDirectory))
 | 
					        if (!Directory.Exists(sequenceDirectory))
 | 
				
			||||||
            _ = Directory.CreateDirectory(sequenceDirectory);
 | 
					            _ = Directory.CreateDirectory(sequenceDirectory);
 | 
				
			||||||
        File.Copy(reportFullPath, Path.Combine(sequenceDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
					        File.Copy(reportFullPath, Path.Combine(sequenceDirectory, Path.GetFileName(reportFullPath)), overwrite: true);
 | 
				
			||||||
        File.WriteAllText(jsonFileName, json);
 | 
					        File.WriteAllText(jsonFileName, json);
 | 
				
			||||||
 | 
					        lock (_StaticRuns)
 | 
				
			||||||
 | 
					            _ = _StaticRuns.Remove(_Logistics.Sequence);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void MoveMatchingFile(string jobIdDirectory, string matchDirectory)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string checkFile;
 | 
				
			||||||
 | 
					        string jobIdDirectoryFileName;
 | 
				
			||||||
 | 
					        string matchDirectoryFileName;
 | 
				
			||||||
 | 
					        string[] jobIdDirectoryFiles = Directory.GetFiles(jobIdDirectory, "*", SearchOption.TopDirectoryOnly);
 | 
				
			||||||
 | 
					        string[] matchDirectoryFiles = Directory.GetFiles(matchDirectory, "*", SearchOption.TopDirectoryOnly);
 | 
				
			||||||
 | 
					        foreach (string jobIdDirectoryFile in jobIdDirectoryFiles)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            jobIdDirectoryFileName = Path.GetFileName(jobIdDirectoryFile);
 | 
				
			||||||
 | 
					            foreach (string matchDirectoryFile in matchDirectoryFiles)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                matchDirectoryFileName = Path.GetFileName(matchDirectoryFile);
 | 
				
			||||||
 | 
					                if (jobIdDirectoryFileName.StartsWith(matchDirectoryFileName))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    checkFile = Path.Combine(matchDirectory, jobIdDirectoryFileName);
 | 
				
			||||||
 | 
					                    if (File.Exists(checkFile))
 | 
				
			||||||
 | 
					                        continue;
 | 
				
			||||||
 | 
					                    File.Move(jobIdDirectoryFile, checkFile);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        string[] lines = File.ReadAllLines(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath, lines);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(reportFullPath, lines, processDataStandardFormat);
 | 
				
			||||||
        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<QS408M.Description> descriptions = QS408M.ProcessData.GetDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            DirectoryMove(reportFullPath, dateTime, descriptions);
 | 
					            DirectoryMove(reportFullPath, dateTime, jsonElements, descriptions);
 | 
				
			||||||
        else if (!_IsEAFHosted)
 | 
					        else if (!_IsEAFHosted)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            OpenInsightMetrologyViewer.WSRequest wsRequest = new(this, _Logistics, descriptions);
 | 
					            OpenInsightMetrologyViewer.WSRequest wsRequest = new(this, _Logistics, jsonElements, descriptions);
 | 
				
			||||||
            JsonSerializerOptions jsonSerializerOptions = new() { WriteIndented = true };
 | 
					            JsonSerializerOptions jsonSerializerOptions = new() { WriteIndented = true };
 | 
				
			||||||
            string json = JsonSerializer.Serialize(wsRequest, wsRequest.GetType(), jsonSerializerOptions);
 | 
					            string check = JsonSerializer.Serialize(wsRequest, wsRequest.GetType(), jsonSerializerOptions);
 | 
				
			||||||
            string jsonFileName = Path.ChangeExtension(reportFullPath, ".json");
 | 
					            string jsonFileName = Path.ChangeExtension(reportFullPath, ".json");
 | 
				
			||||||
            string historicalText = File.ReadAllText(jsonFileName);
 | 
					            string historicalText = File.ReadAllText(jsonFileName);
 | 
				
			||||||
            if (json != historicalText)
 | 
					            if (check != historicalText)
 | 
				
			||||||
                throw new Exception("File doesn't match historical!");
 | 
					                throw new Exception("File doesn't match historical!");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
 | 
				
			|||||||
@ -4,72 +4,75 @@ using System;
 | 
				
			|||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
using System.Linq;
 | 
					using System.Linq;
 | 
				
			||||||
using System.Text.Json;
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.FileHandlers.QS408M;
 | 
					namespace Adaptation.FileHandlers.QS408M;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Description : IDescription, Shared.Properties.IDescription
 | 
					public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public int Test { get; set; }
 | 
					    [JsonPropertyName("EventId")] public int Test { get; set; }
 | 
				
			||||||
    public int Count { get; set; }
 | 
					    [JsonPropertyName("Count")] public int Count { get; set; }
 | 
				
			||||||
    public int Index { get; set; }
 | 
					    [JsonPropertyName("Index")] public int Index { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string EventName { get; set; }
 | 
					    public string EventName { get; set; }
 | 
				
			||||||
    public string NullData { get; set; }
 | 
					    public string NullData { get; set; }
 | 
				
			||||||
    public string JobID { get; set; }
 | 
					    public string JobID { get; set; }
 | 
				
			||||||
    public string Sequence { get; set; }
 | 
					    public string Sequence { get; set; }
 | 
				
			||||||
    public string MesEntity { get; set; }
 | 
					    [JsonPropertyName("MesEntity")] public string MesEntity { get; set; }
 | 
				
			||||||
    public string ReportFullPath { get; set; }
 | 
					    public string ReportFullPath { get; set; }
 | 
				
			||||||
    public string ProcessJobID { get; set; }
 | 
					    public string ProcessJobID { get; set; }
 | 
				
			||||||
    public string MID { get; set; }
 | 
					    public string MID { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Date { get; set; }
 | 
					    [JsonPropertyName("DateTime")] public string Date { get; set; }
 | 
				
			||||||
    public string Employee { get; set; }
 | 
					    [JsonPropertyName("Operator")] public string Employee { get; set; }
 | 
				
			||||||
    public string Lot { get; set; }
 | 
					    public string Lot { get; set; }
 | 
				
			||||||
    public string PSN { get; set; }
 | 
					    [JsonPropertyName("PSN")] public string PSN { get; set; }
 | 
				
			||||||
    public string Reactor { get; set; }
 | 
					    [JsonPropertyName("Reactor")] public string Reactor { get; set; }
 | 
				
			||||||
    public string Recipe { get; set; }
 | 
					    [JsonPropertyName("Recipe")] public string Recipe { get; set; }
 | 
				
			||||||
 | 
					    [JsonPropertyName("IndexOf")] public string IndexOf { get; set; }
 | 
				
			||||||
 | 
					    [JsonPropertyName("AttemptCounter")] public string AttemptCounter { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Cassette { get; set; }
 | 
					    [JsonPropertyName("Cassette")] public string Cassette { get; set; }
 | 
				
			||||||
    public string HeaderUniqueId { get; set; }
 | 
					    public string HeaderUniqueId { get; set; }
 | 
				
			||||||
    public string Layer { get; set; }
 | 
					    [JsonPropertyName("Layer")] public string Layer { get; set; }
 | 
				
			||||||
    public string PassFail { get; set; }
 | 
					    [JsonPropertyName("PassFail")] public string PassFail { get; set; }
 | 
				
			||||||
    public string Position { get; set; }
 | 
					    [JsonPropertyName("Position")] public string Position { get; set; }
 | 
				
			||||||
    public string RDS { get; set; }
 | 
					    [JsonPropertyName("RDS")] public string RDS { get; set; }
 | 
				
			||||||
    public string Title { get; set; }
 | 
					    [JsonPropertyName("Title")] public string Title { get; set; }
 | 
				
			||||||
    public string UniqueId { get; set; }
 | 
					    public string UniqueId { get; set; }
 | 
				
			||||||
    public string Wafer { get; set; }
 | 
					    [JsonPropertyName("Wafer")] public string Wafer { get; set; }
 | 
				
			||||||
    public string Zone { get; set; }
 | 
					    [JsonPropertyName("Zone")] public string Zone { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string MeanThickness { get; set; }
 | 
					    [JsonPropertyName("WaferMeanThickness")] public string MeanThickness { get; set; }
 | 
				
			||||||
    public string RVThickness { get; set; }
 | 
					    [JsonPropertyName("RadialVariationThickness")] public string RVThickness { get; set; }
 | 
				
			||||||
    public string StdDev { get; set; }
 | 
					    [JsonPropertyName("StdDev")] public string StdDev { get; set; }
 | 
				
			||||||
    public string Thickness { get; set; }
 | 
					    [JsonPropertyName("Thickness")] public string Thickness { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Slot { get; set; }
 | 
					    [JsonPropertyName("Slot")] public string Slot { get; set; }
 | 
				
			||||||
    public string ThicknessFourteen3mmEdgeMean { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 3mm Edge Mean")] public string ThicknessFourteen3mmEdgeMean { get; set; }
 | 
				
			||||||
    public string ThicknessFourteen3mmEdgePercent { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 3mm Edge % from R/2")] public string ThicknessFourteen3mmEdgePercent { get; set; }
 | 
				
			||||||
    public string ThicknessFourteen5mmEdgeMean { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 5mm Edge Mean")] public string ThicknessFourteen5mmEdgeMean { get; set; }
 | 
				
			||||||
    public string ThicknessFourteen5mmEdgePercent { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 5mm Edge % from R/2")] public string ThicknessFourteen5mmEdgePercent { get; set; }
 | 
				
			||||||
    public string ThicknessFourteenCenterMean { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 Center Mean")] public string ThicknessFourteenCenterMean { get; set; }
 | 
				
			||||||
    public string ThicknessFourteenCriticalPointsAverage { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 Average")] public string ThicknessFourteenCriticalPointsAverage { get; set; }
 | 
				
			||||||
    public string ThicknessFourteenCriticalPointsStdDev { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 Std Dev")] public string ThicknessFourteenCriticalPointsStdDev { get; set; }
 | 
				
			||||||
    public string ThicknessFourteenMeanFrom { get; set; }
 | 
					    [JsonPropertyName("Thickness 14 R 2/Mean")] public string ThicknessFourteenMeanFrom { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Thickness01 { get; set; }
 | 
					    [JsonPropertyName("Thickness01")] public string Thickness01 { get; set; }
 | 
				
			||||||
    public string Thickness02 { get; set; }
 | 
					    [JsonPropertyName("Thickness02")] public string Thickness02 { get; set; }
 | 
				
			||||||
    public string Thickness03 { get; set; }
 | 
					    [JsonPropertyName("Thickness03")] public string Thickness03 { get; set; }
 | 
				
			||||||
    public string Thickness04 { get; set; }
 | 
					    [JsonPropertyName("Thickness04")] public string Thickness04 { get; set; }
 | 
				
			||||||
    public string Thickness05 { get; set; }
 | 
					    [JsonPropertyName("Thickness05")] public string Thickness05 { get; set; }
 | 
				
			||||||
    public string Thickness06 { get; set; }
 | 
					    [JsonPropertyName("Thickness06")] public string Thickness06 { get; set; }
 | 
				
			||||||
    public string Thickness07 { get; set; }
 | 
					    [JsonPropertyName("Thickness07")] public string Thickness07 { get; set; }
 | 
				
			||||||
    public string Thickness08 { get; set; }
 | 
					    [JsonPropertyName("Thickness08")] public string Thickness08 { get; set; }
 | 
				
			||||||
    public string Thickness09 { get; set; }
 | 
					    [JsonPropertyName("Thickness09")] public string Thickness09 { get; set; }
 | 
				
			||||||
    public string Thickness10 { get; set; }
 | 
					    [JsonPropertyName("Thickness10")] public string Thickness10 { get; set; }
 | 
				
			||||||
    public string Thickness11 { get; set; }
 | 
					    [JsonPropertyName("Thickness11")] public string Thickness11 { get; set; }
 | 
				
			||||||
    public string Thickness12 { get; set; }
 | 
					    [JsonPropertyName("Thickness12")] public string Thickness12 { get; set; }
 | 
				
			||||||
    public string Thickness13 { get; set; }
 | 
					    [JsonPropertyName("Thickness13")] public string Thickness13 { get; set; }
 | 
				
			||||||
    public string Thickness14 { get; set; }
 | 
					    [JsonPropertyName("Thickness14")] public string Thickness14 { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string IDescription.GetEventDescription() => "File Has been read and parsed";
 | 
					    string IDescription.GetEventDescription() => "File Has been read and parsed";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -228,6 +231,8 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
                    PSN = processData.PSN,
 | 
					                    PSN = processData.PSN,
 | 
				
			||||||
                    Reactor = processData.Reactor,
 | 
					                    Reactor = processData.Reactor,
 | 
				
			||||||
                    Recipe = processData.Recipe,
 | 
					                    Recipe = processData.Recipe,
 | 
				
			||||||
 | 
					                    IndexOf = nameof(IndexOf),
 | 
				
			||||||
 | 
					                    AttemptCounter = nameof(AttemptCounter),
 | 
				
			||||||
                    //
 | 
					                    //
 | 
				
			||||||
                    Cassette = processData.Cassette,
 | 
					                    Cassette = processData.Cassette,
 | 
				
			||||||
                    HeaderUniqueId = detail.HeaderUniqueId,
 | 
					                    HeaderUniqueId = detail.HeaderUniqueId,
 | 
				
			||||||
@ -304,6 +309,8 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
            PSN = nameof(PSN),
 | 
					            PSN = nameof(PSN),
 | 
				
			||||||
            Reactor = nameof(Reactor),
 | 
					            Reactor = nameof(Reactor),
 | 
				
			||||||
            Recipe = nameof(Recipe),
 | 
					            Recipe = nameof(Recipe),
 | 
				
			||||||
 | 
					            IndexOf = nameof(IndexOf),
 | 
				
			||||||
 | 
					            AttemptCounter = nameof(AttemptCounter),
 | 
				
			||||||
            //
 | 
					            //
 | 
				
			||||||
            Cassette = nameof(Cassette),
 | 
					            Cassette = nameof(Cassette),
 | 
				
			||||||
            HeaderUniqueId = nameof(HeaderUniqueId),
 | 
					            HeaderUniqueId = nameof(HeaderUniqueId),
 | 
				
			||||||
@ -351,4 +358,16 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
 | 
					    internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Description))]
 | 
				
			||||||
 | 
					internal partial class DescriptionSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Description[]))]
 | 
				
			||||||
 | 
					internal partial class DescriptionArraySourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -1,13 +1,27 @@
 | 
				
			|||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.FileHandlers.QS408M;
 | 
					namespace Adaptation.FileHandlers.QS408M;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Detail
 | 
					public class Detail
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public string HeaderUniqueId { get; set; }
 | 
					    public string HeaderUniqueId { get; set; }
 | 
				
			||||||
    public string Position { get; set; }
 | 
					    [JsonPropertyName("Position")] public string Position { get; set; }
 | 
				
			||||||
    public string Thickness { get; set; }
 | 
					    [JsonPropertyName("Thickness")] public string Thickness { get; set; }
 | 
				
			||||||
    public string UniqueId { get; set; }
 | 
					    public string UniqueId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public override string ToString() => string.Concat(Position, ";", Thickness, ";");
 | 
					    public override string ToString() => string.Concat(Position, ";", Thickness, ";");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Detail))]
 | 
				
			||||||
 | 
					internal partial class DetailSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Detail[]))]
 | 
				
			||||||
 | 
					internal partial class DetailArraySourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -17,7 +17,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly Header[] _LastHeader;
 | 
					    private readonly Header[] _LastHeader;
 | 
				
			||||||
    private readonly string _OriginalDataBioRad;
 | 
					    private readonly string _OriginalDataBioRad;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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<Shared.Metrology.WS.Results>> 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 = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
 | 
				
			|||||||
@ -304,12 +304,11 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        List<Description> results = new();
 | 
					        List<Description> results = new();
 | 
				
			||||||
        Description? description;
 | 
					        Description? description;
 | 
				
			||||||
        JsonSerializerOptions jsonSerializerOptions = new() { NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString };
 | 
					 | 
				
			||||||
        foreach (JsonElement jsonElement in jsonElements)
 | 
					        foreach (JsonElement jsonElement in jsonElements)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (jsonElement.ValueKind != JsonValueKind.Object)
 | 
					            if (jsonElement.ValueKind != JsonValueKind.Object)
 | 
				
			||||||
                throw new Exception();
 | 
					                throw new Exception();
 | 
				
			||||||
            description = JsonSerializer.Deserialize<Description>(jsonElement.ToString(), jsonSerializerOptions);
 | 
					            description = JsonSerializer.Deserialize(jsonElement.ToString(), DescriptionSourceGenerationContext.Default.Description);
 | 
				
			||||||
            if (description is null)
 | 
					            if (description is null)
 | 
				
			||||||
                continue;
 | 
					                continue;
 | 
				
			||||||
            results.Add(description);
 | 
					            results.Add(description);
 | 
				
			||||||
 | 
				
			|||||||
@ -58,6 +58,6 @@ internal class Row
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
[JsonSerializable(typeof(Row))]
 | 
					[JsonSerializable(typeof(Row))]
 | 
				
			||||||
internal partial class RowSourceGenerationContext : JsonSerializerContext
 | 
					internal partial class QS408MRowSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -68,10 +68,10 @@ internal class Run
 | 
				
			|||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static void WriteJson(Logistics logistics, List<FileInfo> fileInfoCollection, Run? result)
 | 
					    private static void WriteJson(Logistics logistics, List<FileInfo> fileInfoCollection, Run result)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        FileInfo fileInfo = new($"{logistics.ReportFullPath}.json");
 | 
					        FileInfo fileInfo = new($"{logistics.ReportFullPath}.run.json");
 | 
				
			||||||
        string json = JsonSerializer.Serialize(result, RunSourceGenerationContext.Default.Run);
 | 
					        string json = JsonSerializer.Serialize(result, QS408MRunSourceGenerationContext.Default.Run);
 | 
				
			||||||
        File.WriteAllText(fileInfo.FullName, json);
 | 
					        File.WriteAllText(fileInfo.FullName, json);
 | 
				
			||||||
        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
					        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
				
			||||||
        fileInfoCollection.Add(fileInfo);
 | 
					        fileInfoCollection.Add(fileInfo);
 | 
				
			||||||
@ -159,8 +159,11 @@ internal class Run
 | 
				
			|||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        result = new(header, sites, body, footer);
 | 
					                        result = new(header, sites, body, footer);
 | 
				
			||||||
                        WriteJson(logistics, fileInfoCollection, result);
 | 
					                        if (logistics.JobID is not "BIORAD4" and not "BIORAD5")
 | 
				
			||||||
                        WriteCommaSeparatedValues(logistics, result);
 | 
					                        {
 | 
				
			||||||
 | 
					                            WriteJson(logistics, fileInfoCollection, result);
 | 
				
			||||||
 | 
					                            WriteCommaSeparatedValues(logistics, result);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -187,6 +190,6 @@ internal class Run
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
[JsonSerializable(typeof(Run))]
 | 
					[JsonSerializable(typeof(Run))]
 | 
				
			||||||
internal partial class RunSourceGenerationContext : JsonSerializerContext
 | 
					internal partial class QS408MRunSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -14,7 +14,7 @@ namespace Adaptation.FileHandlers.SPaCe;
 | 
				
			|||||||
public class FileRead : Shared.FileRead, IFileRead
 | 
					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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MinFileLength = 10;
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
@ -117,15 +117,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;
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
        Tuple<string, string[], string[]> pdsf = ProcessDataStandardFormat.GetLogisticsColumnsAndBody(reportFullPath);
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath);
 | 
				
			||||||
        _Logistics = new Logistics(reportFullPath, pdsf.Item1);
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
        SetFileParameterLotIDToLogisticsMID();
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(pdsf);
 | 
					        JsonElement[] jsonElements = ProcessDataStandardFormat.GetArray(processDataStandardFormat);
 | 
				
			||||||
        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
					        List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
 | 
				
			||||||
        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
					        Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
            FileCopy(reportFullPath, dateTime, descriptions);
 | 
					            FileCopy(reportFullPath, dateTime, descriptions);
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(string.Join(Environment.NewLine, processDataStandardFormat.Logistics), tests, jsonElements, new List<FileInfo>());
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										80
									
								
								Adaptation/FileHandlers/pdsf/Body.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								Adaptation/FileHandlers/pdsf/Body.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Body
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Body(string waferMeanThickness, string stdDev, string passFail)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        WaferMeanThickness = waferMeanThickness;
 | 
				
			||||||
 | 
					        StdDev = stdDev;
 | 
				
			||||||
 | 
					        PassFail = passFail;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string WaferMeanThickness { get; }
 | 
				
			||||||
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					    public string PassFail { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static bool IsNullOrWhiteSpace(string text)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool flag;
 | 
				
			||||||
 | 
					        int num = 0;
 | 
				
			||||||
 | 
					        while (true)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (num >= text.Length)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                flag = true;
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else if (char.IsWhiteSpace(text[num]))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                num++;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                flag = false;
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return flag;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string GetToken(string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        while (true)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (i[0] >= text.Length || !IsNullOrWhiteSpace(text.Substring(i[0], 1)))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            i[0]++;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        int num = i[0];
 | 
				
			||||||
 | 
					        while (true)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (num >= text.Length || IsNullOrWhiteSpace(text.Substring(num, 1)))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            num++;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        string str = text.Substring(i[0], num - i[0]);
 | 
				
			||||||
 | 
					        i[0] = num;
 | 
				
			||||||
 | 
					        return str.Trim();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Body? Get(Constant constant, string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Body? result;
 | 
				
			||||||
 | 
					        i[0] = Run.ScanPast(text, i, constant.MeanThickness);
 | 
				
			||||||
 | 
					        string meanThickness = Run.GetBefore(text, i, constant.StandardDeviation);
 | 
				
			||||||
 | 
					        string stdDev = GetToken(text, i);
 | 
				
			||||||
 | 
					        string passFail = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        result = new(meanThickness,
 | 
				
			||||||
 | 
					                     stdDev,
 | 
				
			||||||
 | 
					                     passFail);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										21
									
								
								Adaptation/FileHandlers/pdsf/Constant.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Adaptation/FileHandlers/pdsf/Constant.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Constant
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Period { get; } = ".";
 | 
				
			||||||
 | 
					    public string Slot { get; } = "Slot:";
 | 
				
			||||||
 | 
					    public string Semicolon { get; } = ";";
 | 
				
			||||||
 | 
					    public string Batch { get; } = "batch:";
 | 
				
			||||||
 | 
					    public string TwoSpaces { get; } = "  ";
 | 
				
			||||||
 | 
					    public string Wafer { get; } = "wafer:";
 | 
				
			||||||
 | 
					    public string BioRad { get; } = "Bio-Rad";
 | 
				
			||||||
 | 
					    public string Recipe { get; } = "Recipe:";
 | 
				
			||||||
 | 
					    public string Cassette { get; } = "cassette:";
 | 
				
			||||||
 | 
					    public string Operator { get; } = "operator:";
 | 
				
			||||||
 | 
					    public string Thickness { get; } = "thickness";
 | 
				
			||||||
 | 
					    public string MeanThickness { get; } = "mean thickness =";
 | 
				
			||||||
 | 
					    public string StandardDeviation { get; } = ", std. dev =";
 | 
				
			||||||
 | 
					    public string WaferFieldIsMissing { get; } = "Wafer field is missing.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										130
									
								
								Adaptation/FileHandlers/pdsf/FileRead.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										130
									
								
								Adaptation/FileHandlers/pdsf/FileRead.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,130 @@
 | 
				
			|||||||
 | 
					using Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
 | 
				
			||||||
 | 
					using Adaptation.Ifx.Eaf.EquipmentConnector.File.Configuration;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Duplicator;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class FileRead : Shared.FileRead, IFileRead
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private readonly Header[] _LastHeader;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    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<Shared.Metrology.WS.Results>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
 | 
				
			||||||
 | 
					        base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        _MinFileLength = 10;
 | 
				
			||||||
 | 
					        _NullData = string.Empty;
 | 
				
			||||||
 | 
					        _Logistics = new(this);
 | 
				
			||||||
 | 
					        if (_FileParameter is null)
 | 
				
			||||||
 | 
					            throw new Exception(cellInstanceConnectionName);
 | 
				
			||||||
 | 
					        if (_ModelObjectParameterDefinitions is null)
 | 
				
			||||||
 | 
					            throw new Exception(cellInstanceConnectionName);
 | 
				
			||||||
 | 
					        if (_IsDuplicator)
 | 
				
			||||||
 | 
					            throw new Exception(cellInstanceConnectionName);
 | 
				
			||||||
 | 
					        _LastHeader = new Header[] { Header.Get() };
 | 
				
			||||||
 | 
					        if (_IsEAFHosted)
 | 
				
			||||||
 | 
					            NestExistingFiles(_FileConnectorConfiguration);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void IFileRead.Move(Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResults, Exception exception) => Move(extractResults);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void IFileRead.WaitForThread() => WaitForThread(thread: null, threadExceptions: null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    string IFileRead.GetEventDescription()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string result = _Description.GetEventDescription();
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    List<string> IFileRead.GetHeaderNames()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<string> results = _Description.GetHeaderNames();
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    string[] IFileRead.Move(Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResults, string to, string from, string resolvedFileLocation, Exception exception)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string[] results = Move(extractResults, to, from, resolvedFileLocation, exception);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    JsonProperty[] IFileRead.GetDefault()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        JsonProperty[] results = _Description.GetDefault(this, _Logistics);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Dictionary<string, string> IFileRead.GetDisplayNamesJsonElement()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Dictionary<string, string> results = _Description.GetDisplayNamesJsonElement(this);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    List<IDescription> IFileRead.GetDescriptions(IFileRead fileRead, List<Test> tests, IProcessData processData)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<IDescription> results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Tuple<string, Test[], JsonElement[], List<FileInfo>> IFileRead.GetExtractResult(string reportFullPath, string eventName)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
 | 
					        if (string.IsNullOrEmpty(eventName))
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					        _ReportFullPath = reportFullPath;
 | 
				
			||||||
 | 
					        DateTime dateTime = DateTime.Now;
 | 
				
			||||||
 | 
					        results = GetExtractResult(reportFullPath, dateTime);
 | 
				
			||||||
 | 
					        if (results.Item3 is null)
 | 
				
			||||||
 | 
					            results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(results.Item1, Array.Empty<Test>(), Array.Empty<JsonElement>(), results.Item4);
 | 
				
			||||||
 | 
					        if (results.Item3.Length > 0 && _IsEAFHosted)
 | 
				
			||||||
 | 
					            WritePDSF(this, results.Item3);
 | 
				
			||||||
 | 
					        UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Tuple<string, Test[], JsonElement[], List<FileInfo>> IFileRead.ReExtract()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
 | 
					        List<string> headerNames = _Description.GetHeaderNames();
 | 
				
			||||||
 | 
					        Dictionary<string, string> keyValuePairs = _Description.GetDisplayNamesJsonElement(this);
 | 
				
			||||||
 | 
					        results = ReExtract(this, headerNames, keyValuePairs);
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results;
 | 
				
			||||||
 | 
					        string result;
 | 
				
			||||||
 | 
					        JsonElement[] jsonElements;
 | 
				
			||||||
 | 
					        Test[] tests = Array.Empty<Test>();
 | 
				
			||||||
 | 
					        List<FileInfo> fileInfoCollection = new();
 | 
				
			||||||
 | 
					        ProcessDataStandardFormat processDataStandardFormat = ProcessDataStandardFormat.GetProcessDataStandardFormat(reportFullPath);
 | 
				
			||||||
 | 
					        _Logistics = new Logistics(reportFullPath, processDataStandardFormat);
 | 
				
			||||||
 | 
					        SetFileParameterLotIDToLogisticsMID();
 | 
				
			||||||
 | 
					        Run? run = Run.Get(_Logistics, processDataStandardFormat, fileInfoCollection, lastHeader: _LastHeader[0]);
 | 
				
			||||||
 | 
					        if (run is null)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _LastHeader[0] = Header.Get();
 | 
				
			||||||
 | 
					            jsonElements = Array.Empty<JsonElement>();
 | 
				
			||||||
 | 
					            result = string.Concat("A) No Data - ", dateTime.Ticks);
 | 
				
			||||||
 | 
					            results = new(result, tests, jsonElements, fileInfoCollection);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _LastHeader[0] = run.Header;
 | 
				
			||||||
 | 
					            result = string.Join(Environment.NewLine, _Logistics.Logistics1);
 | 
				
			||||||
 | 
					            jsonElements = _IsEAFHosted ? Array.Empty<JsonElement>() : ProcessDataStandardFormat.GetArray(processDataStandardFormat);
 | 
				
			||||||
 | 
					            results = new(result, tests, jsonElements, fileInfoCollection);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										36
									
								
								Adaptation/FileHandlers/pdsf/Footer.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								Adaptation/FileHandlers/pdsf/Footer.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Footer
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Footer(string line, string radialVariationThickness, string slot)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Line = line;
 | 
				
			||||||
 | 
					        RadialVariationThickness = radialVariationThickness;
 | 
				
			||||||
 | 
					        Slot = slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Line { get; }
 | 
				
			||||||
 | 
					    public string RadialVariationThickness { get; }
 | 
				
			||||||
 | 
					    public string Slot { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Footer? Get(Constant constant, string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Footer? result;
 | 
				
			||||||
 | 
					        _ = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        _ = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        string line = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        i[0] = Run.ScanPast(text, i, constant.Thickness);
 | 
				
			||||||
 | 
					        string radialVariationThickness = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        _ = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        i[0] = Run.ScanPast(text, i, constant.Slot);
 | 
				
			||||||
 | 
					        string slot = Run.GetBefore(text, i, constant.Semicolon);
 | 
				
			||||||
 | 
					        result = new(line,
 | 
				
			||||||
 | 
					                     radialVariationThickness,
 | 
				
			||||||
 | 
					                     slot);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										106
									
								
								Adaptation/FileHandlers/pdsf/Header.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								Adaptation/FileHandlers/pdsf/Header.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,106 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Header
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Header(string title, string recipe, string dateTime, string @operator, string batch, string cassette, bool usedLast, string wafer)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Title = title;
 | 
				
			||||||
 | 
					        Recipe = recipe;
 | 
				
			||||||
 | 
					        DateTime = dateTime;
 | 
				
			||||||
 | 
					        Operator = @operator;
 | 
				
			||||||
 | 
					        Batch = batch;
 | 
				
			||||||
 | 
					        Cassette = cassette;
 | 
				
			||||||
 | 
					        UsedLast = usedLast;
 | 
				
			||||||
 | 
					        Wafer = wafer;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Title { get; }
 | 
				
			||||||
 | 
					    public string Recipe { get; }
 | 
				
			||||||
 | 
					    public string DateTime { get; }
 | 
				
			||||||
 | 
					    public string Operator { get; }
 | 
				
			||||||
 | 
					    public string Batch { get; }
 | 
				
			||||||
 | 
					    public string Cassette { get; }
 | 
				
			||||||
 | 
					    public bool UsedLast { get; }
 | 
				
			||||||
 | 
					    public string Wafer { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Header Get() =>
 | 
				
			||||||
 | 
					        new(string.Empty,
 | 
				
			||||||
 | 
					            string.Empty,
 | 
				
			||||||
 | 
					            string.Empty,
 | 
				
			||||||
 | 
					            string.Empty,
 | 
				
			||||||
 | 
					            string.Empty,
 | 
				
			||||||
 | 
					            string.Empty,
 | 
				
			||||||
 | 
					            false,
 | 
				
			||||||
 | 
					            string.Empty);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Header? Get(Constant constant, Header lastHeader, string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Header? result;
 | 
				
			||||||
 | 
					        // occasionally there are multiple blocks of details, get the last one as earlier ones may be aborted runs.
 | 
				
			||||||
 | 
					        int index = text.LastIndexOf(constant.BioRad);
 | 
				
			||||||
 | 
					        if (index > -1)
 | 
				
			||||||
 | 
					            text = text.Substring(index);
 | 
				
			||||||
 | 
					        if (string.IsNullOrEmpty(text))
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            bool usedLast;
 | 
				
			||||||
 | 
					            string recipe;
 | 
				
			||||||
 | 
					            string title = Run.GetBefore(text, i, constant.Recipe);
 | 
				
			||||||
 | 
					            string recipeAndDateTime = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					            if (recipeAndDateTime.Length < constant.TwoSpaces.Length)
 | 
				
			||||||
 | 
					                recipe = recipeAndDateTime.Trim();
 | 
				
			||||||
 | 
					            else if (!recipeAndDateTime.Contains(constant.TwoSpaces))
 | 
				
			||||||
 | 
					                recipe = recipeAndDateTime.Substring(0, 25).Trim();
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                recipe = recipeAndDateTime.Split(new string[] { constant.TwoSpaces }, StringSplitOptions.None)[0].Trim();
 | 
				
			||||||
 | 
					            string dateTime = recipeAndDateTime.Substring(recipe.Length).Trim();
 | 
				
			||||||
 | 
					            if (dateTime.EndsWith(constant.Period))
 | 
				
			||||||
 | 
					                dateTime = dateTime.Remove(dateTime.Length - 1, 1);
 | 
				
			||||||
 | 
					            i[0] = Run.ScanPast(text, i, constant.Operator);
 | 
				
			||||||
 | 
					            string @operator = Run.GetBefore(text, i, constant.Batch);
 | 
				
			||||||
 | 
					            string batch = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					            i[0] = Run.ScanPast(text, i, constant.Cassette);
 | 
				
			||||||
 | 
					            if (!text.Contains(constant.Cassette))
 | 
				
			||||||
 | 
					                title = string.Empty;
 | 
				
			||||||
 | 
					            string cassette = Run.GetBefore(text, i, constant.Wafer);
 | 
				
			||||||
 | 
					            if (string.IsNullOrEmpty(batch))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                i[0] = 0;
 | 
				
			||||||
 | 
					                i[0] = Run.ScanPast(text, i, constant.Wafer);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            string wafer = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					            _ = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					            _ = Run.GetToEOL(text, i);
 | 
				
			||||||
 | 
					            if (string.IsNullOrEmpty(wafer))
 | 
				
			||||||
 | 
					                throw new Exception(constant.WaferFieldIsMissing);
 | 
				
			||||||
 | 
					            if (!string.IsNullOrEmpty(title))
 | 
				
			||||||
 | 
					                usedLast = false;
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                title = lastHeader.Title;
 | 
				
			||||||
 | 
					                recipe = lastHeader.Recipe;
 | 
				
			||||||
 | 
					                @operator = lastHeader.Operator;
 | 
				
			||||||
 | 
					                batch = lastHeader.Batch;
 | 
				
			||||||
 | 
					                cassette = lastHeader.Cassette;
 | 
				
			||||||
 | 
					                usedLast = true;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            result = new(title: title,
 | 
				
			||||||
 | 
					                         recipe: recipe,
 | 
				
			||||||
 | 
					                         dateTime: dateTime,
 | 
				
			||||||
 | 
					                         @operator: @operator,
 | 
				
			||||||
 | 
					                         batch: batch,
 | 
				
			||||||
 | 
					                         cassette: cassette,
 | 
				
			||||||
 | 
					                         usedLast: usedLast,
 | 
				
			||||||
 | 
					                         wafer: wafer);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										63
									
								
								Adaptation/FileHandlers/pdsf/Row.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								Adaptation/FileHandlers/pdsf/Row.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Row
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Row(Run run, int i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Index = i;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        Title = run.Header.Title;
 | 
				
			||||||
 | 
					        Recipe = run.Header.Recipe;
 | 
				
			||||||
 | 
					        DateTime = run.Header.DateTime;
 | 
				
			||||||
 | 
					        Operator = run.Header.Operator;
 | 
				
			||||||
 | 
					        Batch = run.Header.Batch;
 | 
				
			||||||
 | 
					        Cassette = run.Header.Cassette;
 | 
				
			||||||
 | 
					        UsedLast = run.Header.UsedLast;
 | 
				
			||||||
 | 
					        Wafer = run.Header.Wafer;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        Position = run.Sites[i].Position;
 | 
				
			||||||
 | 
					        Thickness = run.Sites[i].Thickness;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        WaferMeanThickness = run.Body.WaferMeanThickness;
 | 
				
			||||||
 | 
					        StdDev = run.Body.StdDev;
 | 
				
			||||||
 | 
					        PassFail = run.Body.PassFail;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        Line = run.Footer.Line;
 | 
				
			||||||
 | 
					        RadialVariationThickness = run.Footer.RadialVariationThickness;
 | 
				
			||||||
 | 
					        Slot = run.Footer.Slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int Index { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string Title { get; }
 | 
				
			||||||
 | 
					    public string Recipe { get; }
 | 
				
			||||||
 | 
					    public string DateTime { get; }
 | 
				
			||||||
 | 
					    public string Operator { get; }
 | 
				
			||||||
 | 
					    public string Batch { get; }
 | 
				
			||||||
 | 
					    public string Cassette { get; }
 | 
				
			||||||
 | 
					    public bool UsedLast { get; }
 | 
				
			||||||
 | 
					    public string Wafer { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string Position { get; }
 | 
				
			||||||
 | 
					    public string Thickness { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string WaferMeanThickness { get; }
 | 
				
			||||||
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					    public string PassFail { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string Line { get; }
 | 
				
			||||||
 | 
					    public string RadialVariationThickness { get; }
 | 
				
			||||||
 | 
					    public string Slot { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Row))]
 | 
				
			||||||
 | 
					internal partial class RowSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										190
									
								
								Adaptation/FileHandlers/pdsf/Run.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										190
									
								
								Adaptation/FileHandlers/pdsf/Run.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,190 @@
 | 
				
			|||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Run
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Header Header { get; }
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<Site> Sites { get; }
 | 
				
			||||||
 | 
					    public Body Body { get; }
 | 
				
			||||||
 | 
					    public Footer Footer { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Run(Header header, ReadOnlyCollection<Site> sites, Body body, Footer footer)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Header = header;
 | 
				
			||||||
 | 
					        Sites = sites;
 | 
				
			||||||
 | 
					        Body = body;
 | 
				
			||||||
 | 
					        Footer = footer;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string GetBefore(string text, int[] i, string search)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string str;
 | 
				
			||||||
 | 
					        string str1;
 | 
				
			||||||
 | 
					        int num = text.IndexOf(search, i[0]);
 | 
				
			||||||
 | 
					        if (num <= -1)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            str = text.Substring(i[0]);
 | 
				
			||||||
 | 
					            i[0] = text.Length;
 | 
				
			||||||
 | 
					            str1 = str.Trim();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            str = text.Substring(i[0], num - i[0]);
 | 
				
			||||||
 | 
					            i[0] = num + search.Length;
 | 
				
			||||||
 | 
					            str1 = str.Trim();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return str1;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string GetToEOL(string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string result;
 | 
				
			||||||
 | 
					        if (text.IndexOf("\n", i[0]) > -1)
 | 
				
			||||||
 | 
					            result = GetBefore(text, i, "\n");
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = GetBefore(text, i, Environment.NewLine);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static int ScanPast(string text, int[] i, string search)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        int result;
 | 
				
			||||||
 | 
					        int num = text.IndexOf(search, i[0]);
 | 
				
			||||||
 | 
					        if (num <= -1)
 | 
				
			||||||
 | 
					            result = text.Length;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = num + search.Length;
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void WriteJson(Logistics logistics, List<FileInfo> fileInfoCollection, Run result)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        FileInfo fileInfo = new($"{logistics.ReportFullPath}.run.json");
 | 
				
			||||||
 | 
					        string json = JsonSerializer.Serialize(result, RunSourceGenerationContext.Default.Run);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileInfo.FullName, json);
 | 
				
			||||||
 | 
					        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
				
			||||||
 | 
					        fileInfoCollection.Add(fileInfo);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static ReadOnlyCollection<string> GetLines(Logistics logistics, JsonElement[]? jsonElements)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<string> results = new();
 | 
				
			||||||
 | 
					        int columns = 0;
 | 
				
			||||||
 | 
					        StringBuilder stringBuilder = new();
 | 
				
			||||||
 | 
					        results.Add($"\"Count\",{jsonElements?.Length}");
 | 
				
			||||||
 | 
					        results.Add($"\"{nameof(logistics.Sequence)}\",\"{logistics.Sequence}\"");
 | 
				
			||||||
 | 
					        results.Add($"\"{nameof(logistics.MesEntity)}\",\"{logistics.MesEntity}\"");
 | 
				
			||||||
 | 
					        string dateTimeFromSequence = logistics.DateTimeFromSequence.ToString("MM/dd/yyyy hh:mm:ss tt");
 | 
				
			||||||
 | 
					        for (int i = 0; i < jsonElements?.Length;)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _ = stringBuilder.Append('"').Append(nameof(logistics.DateTimeFromSequence)).Append('"').Append(',');
 | 
				
			||||||
 | 
					            foreach (JsonProperty jsonProperty in jsonElements[0].EnumerateObject())
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                columns += 1;
 | 
				
			||||||
 | 
					                _ = stringBuilder.Append('"').Append(jsonProperty.Name).Append('"').Append(',');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            break;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if (jsonElements?.Length != 0)
 | 
				
			||||||
 | 
					            _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
				
			||||||
 | 
					        results.Add(stringBuilder.ToString());
 | 
				
			||||||
 | 
					        for (int i = 0; i < jsonElements?.Length; i++)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _ = stringBuilder.Clear();
 | 
				
			||||||
 | 
					            _ = stringBuilder.Append('"').Append(dateTimeFromSequence).Append('"').Append(',');
 | 
				
			||||||
 | 
					            foreach (JsonProperty jsonProperty in jsonElements[i].EnumerateObject())
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (jsonProperty.Value.ValueKind == JsonValueKind.Object)
 | 
				
			||||||
 | 
					                    _ = stringBuilder.Append(',');
 | 
				
			||||||
 | 
					                else if (jsonProperty.Value.ValueKind != JsonValueKind.String)
 | 
				
			||||||
 | 
					                    _ = stringBuilder.Append(jsonProperty.Value).Append(',');
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                    _ = stringBuilder.Append('"').Append(jsonProperty.Value).Append('"').Append(',');
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
				
			||||||
 | 
					            results.Add(stringBuilder.ToString());
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void WriteCommaSeparatedValues(Logistics logistics, Run run)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Row> results = new();
 | 
				
			||||||
 | 
					        Row row;
 | 
				
			||||||
 | 
					        for (int i = 0; i < run.Sites.Count; i++)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            row = new(run, i);
 | 
				
			||||||
 | 
					            results.Add(row);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        string json = JsonSerializer.Serialize(results);
 | 
				
			||||||
 | 
					        JsonElement[]? jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json);
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> lines = GetLines(logistics, jsonElements);
 | 
				
			||||||
 | 
					        File.WriteAllText($"{logistics.ReportFullPath}.csv", string.Join(Environment.NewLine, lines));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static string GetText(ProcessDataStandardFormat processDataStandardFormat)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string result;
 | 
				
			||||||
 | 
					        List<string> results = new();
 | 
				
			||||||
 | 
					        int skipColumns = processDataStandardFormat.Columns.Count - 1;
 | 
				
			||||||
 | 
					        foreach (string line in processDataStandardFormat.Body)
 | 
				
			||||||
 | 
					            results.Add(string.Join("\t", line.Split('\t').Skip(skipColumns)));
 | 
				
			||||||
 | 
					        result = string.Join(Environment.NewLine, results);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Run? Get(Logistics logistics, ProcessDataStandardFormat processDataStandardFormat, List<FileInfo> fileInfoCollection, Header lastHeader)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Run? result;
 | 
				
			||||||
 | 
					        Constant constant = new();
 | 
				
			||||||
 | 
					        int[] i = new int[] { 0 };
 | 
				
			||||||
 | 
					        string text = GetText(processDataStandardFormat);
 | 
				
			||||||
 | 
					        Header? header = Header.Get(constant, lastHeader, text, i);
 | 
				
			||||||
 | 
					        if (header is null)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            ReadOnlyCollection<Site> sites = Site.Get(text, i);
 | 
				
			||||||
 | 
					            if (sites.Count == 0)
 | 
				
			||||||
 | 
					                result = null;
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                Body? body = Body.Get(constant, text, i);
 | 
				
			||||||
 | 
					                if (body is null)
 | 
				
			||||||
 | 
					                    result = null;
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Footer? footer = Footer.Get(constant, text, i);
 | 
				
			||||||
 | 
					                    if (footer is null)
 | 
				
			||||||
 | 
					                        result = null;
 | 
				
			||||||
 | 
					                    else
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        result = new(header, sites, body, footer);
 | 
				
			||||||
 | 
					                        WriteJson(logistics, fileInfoCollection, result);
 | 
				
			||||||
 | 
					                        WriteCommaSeparatedValues(logistics, result);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Run))]
 | 
				
			||||||
 | 
					internal partial class RunSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										36
									
								
								Adaptation/FileHandlers/pdsf/Site.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								Adaptation/FileHandlers/pdsf/Site.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
				
			|||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.pdsf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Site
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Site(string position, string thickness)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Position = position;
 | 
				
			||||||
 | 
					        Thickness = thickness;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Position { get; }
 | 
				
			||||||
 | 
					    public string Thickness { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static ReadOnlyCollection<Site> Get(string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Site> results = new();
 | 
				
			||||||
 | 
					        Site site;
 | 
				
			||||||
 | 
					        string thickness;
 | 
				
			||||||
 | 
					        string position = Body.GetToken(text, i);
 | 
				
			||||||
 | 
					        while (true)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (string.IsNullOrEmpty(position) || !char.IsDigit(position[0]))
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            thickness = Body.GetToken(text, i);
 | 
				
			||||||
 | 
					            site = new(position, thickness);
 | 
				
			||||||
 | 
					            results.Add(site);
 | 
				
			||||||
 | 
					            position = Body.GetToken(text, i);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -226,9 +226,9 @@ public class MonIn : IMonIn, IDisposable
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        StringBuilder stringBuilder = new();
 | 
					        StringBuilder stringBuilder = new();
 | 
				
			||||||
        if (string.IsNullOrEmpty(subresource))
 | 
					        if (string.IsNullOrEmpty(subresource))
 | 
				
			||||||
            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} \n{5}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), stateName.Trim(), state.Trim(), description.Trim());
 | 
					            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} \n{5}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), stateName.Trim(), state.Trim(), description.Trim());
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} \n{6}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), subresource.Trim(), stateName.Trim(), state.Trim(), description.Trim());
 | 
					            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} \n{6}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), subresource.Trim(), stateName.Trim(), state.Trim(), description.Trim());
 | 
				
			||||||
        return stringBuilder.ToString();
 | 
					        return stringBuilder.ToString();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -247,14 +247,14 @@ public class MonIn : IMonIn, IDisposable
 | 
				
			|||||||
        if (string.IsNullOrEmpty(subresource))
 | 
					        if (string.IsNullOrEmpty(subresource))
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (unit.Equals(string.Empty) && !interval.HasValue)
 | 
					            if (unit.Equals(string.Empty) && !interval.HasValue)
 | 
				
			||||||
                _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} \n{5}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), performanceName.Trim(), value, description.Trim());
 | 
					                _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} \n{5}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), performanceName.Trim(), value, description.Trim());
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} {5} {{interval={6}, unit={7}}}\n", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), performanceName.Trim(), value, description.Trim(), interval.HasValue ? interval.Value.ToString() : (object)string.Empty, unit.Trim());
 | 
					                _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" {4} {5} {{interval={6}, unit={7}}}\n", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), performanceName.Trim(), value, description.Trim(), interval.HasValue ? interval.Value.ToString() : string.Empty, unit.Trim());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if (unit.Equals(string.Empty) && !interval.HasValue)
 | 
					        else if (unit.Equals(string.Empty) && !interval.HasValue)
 | 
				
			||||||
            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} \n{6}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), subresource.Trim(), performanceName.Trim(), value, description.Trim());
 | 
					            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} \n{6}", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), subresource.Trim(), performanceName.Trim(), value, description.Trim());
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} {6} {{interval={7}, unit={8}}}\n", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : (object)"now", resource.Trim(), subresource.Trim(), performanceName.Trim(), value, description.Trim(), interval.HasValue ? interval.Value.ToString() : (object)string.Empty, unit.Trim());
 | 
					            _ = stringBuilder.AppendFormat(_CultureInfo, "> {0} {1} \"{2}\" \"{3}\" \"{4}\" {5} {6} {{interval={7}, unit={8}}}\n", site.Trim(), timeStamp.HasValue ? GetDateTimeNowAsPosix(timeStamp.Value) : "now", resource.Trim(), subresource.Trim(), performanceName.Trim(), value, description.Trim(), interval.HasValue ? interval.Value.ToString() : string.Empty, unit.Trim());
 | 
				
			||||||
        return stringBuilder.ToString();
 | 
					        return stringBuilder.ToString();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -69,7 +69,7 @@
 | 
				
			|||||||
        <PackageReference Include="System.Text.Json" Version="9.0.0" />
 | 
					        <PackageReference Include="System.Text.Json" Version="9.0.0" />
 | 
				
			||||||
    </ItemGroup>
 | 
					    </ItemGroup>
 | 
				
			||||||
    <ItemGroup>
 | 
					    <ItemGroup>
 | 
				
			||||||
        <PackageReference Include="Infineon.Mesa.PDF.Text.Stripper" Version="4.8.0.1"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
					        <PackageReference Include="Infineon.Mesa.PDF.Text.Stripper" Version="4.8.0.2"><NoWarn>NU1701</NoWarn></PackageReference>
 | 
				
			||||||
    </ItemGroup>
 | 
					    </ItemGroup>
 | 
				
			||||||
    <ItemGroup>
 | 
					    <ItemGroup>
 | 
				
			||||||
        <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.3" />
 | 
					        <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.3" />
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,7 @@ stages:
 | 
				
			|||||||
      nugetSource: "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
 | 
					      nugetSource: "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    jobs:
 | 
					    jobs:
 | 
				
			||||||
      - job: SetupEnviroment
 | 
					      - job: SetupEnvironment
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
              echo $(Build.BuildId)
 | 
					              echo $(Build.BuildId)
 | 
				
			||||||
@ -51,7 +51,7 @@ stages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - job: BuildDebug
 | 
					      - job: BuildDebug
 | 
				
			||||||
        dependsOn:
 | 
					        dependsOn:
 | 
				
			||||||
          - SetupEnviroment
 | 
					          - SetupEnvironment
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
              set configuration=Debug
 | 
					              set configuration=Debug
 | 
				
			||||||
@ -66,7 +66,7 @@ stages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - job: BuildRelease
 | 
					      - job: BuildRelease
 | 
				
			||||||
        dependsOn:
 | 
					        dependsOn:
 | 
				
			||||||
          - SetupEnviroment
 | 
					          - SetupEnvironment
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
              set configuration=Release
 | 
					              set configuration=Release
 | 
				
			||||||
@ -98,7 +98,7 @@ stages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - job: TestDebug
 | 
					      - job: TestDebug
 | 
				
			||||||
        dependsOn:
 | 
					        dependsOn:
 | 
				
			||||||
          - SetupEnviroment
 | 
					          - SetupEnvironment
 | 
				
			||||||
          - BuildDebug
 | 
					          - BuildDebug
 | 
				
			||||||
          - BuildRelease
 | 
					          - BuildRelease
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
@ -168,7 +168,7 @@ stages:
 | 
				
			|||||||
      nugetSource: "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
 | 
					      nugetSource: "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    jobs:
 | 
					    jobs:
 | 
				
			||||||
      - job: SetupEnviroment
 | 
					      - job: SetupEnvironment
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
              echo $(Build.BuildId)
 | 
					              echo $(Build.BuildId)
 | 
				
			||||||
@ -194,7 +194,7 @@ stages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - job: BuildRelease
 | 
					      - job: BuildRelease
 | 
				
			||||||
        dependsOn:
 | 
					        dependsOn:
 | 
				
			||||||
          - SetupEnviroment
 | 
					          - SetupEnvironment
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
              set configuration=Release
 | 
					              set configuration=Release
 | 
				
			||||||
@ -226,7 +226,7 @@ stages:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - job: TestRelease
 | 
					      - job: TestRelease
 | 
				
			||||||
        dependsOn:
 | 
					        dependsOn:
 | 
				
			||||||
          - SetupEnviroment
 | 
					          - SetupEnvironment
 | 
				
			||||||
          - BuildRelease
 | 
					          - BuildRelease
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
          - script: |
 | 
					          - script: |
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,7 @@ using System;
 | 
				
			|||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
using System.Linq;
 | 
					using System.Linq;
 | 
				
			||||||
using System.Text.Json;
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.Shared.Duplicator;
 | 
					namespace Adaptation.Shared.Duplicator;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -178,4 +179,16 @@ public class Description : IDescription, Properties.IDescription
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
 | 
					    internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Description))]
 | 
				
			||||||
 | 
					internal partial class SharedDescriptionSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Description[]))]
 | 
				
			||||||
 | 
					internal partial class SharedDescriptionArraySourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -35,6 +35,9 @@ public class Logistics : ILogistics
 | 
				
			|||||||
    public long Sequence => _Sequence;
 | 
					    public long Sequence => _Sequence;
 | 
				
			||||||
    public double TotalSecondsSinceLastWriteTimeFromSequence => _TotalSecondsSinceLastWriteTimeFromSequence;
 | 
					    public double TotalSecondsSinceLastWriteTimeFromSequence => _TotalSecondsSinceLastWriteTimeFromSequence;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static string DefaultMesEntity(DateTime dateTime) =>
 | 
				
			||||||
 | 
					        string.Concat(dateTime.Ticks, "_MES_ENTITY");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Logistics(IFileRead fileRead)
 | 
					    public Logistics(IFileRead fileRead)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        DateTime dateTime = DateTime.Now;
 | 
					        DateTime dateTime = DateTime.Now;
 | 
				
			||||||
@ -84,13 +87,13 @@ public class Logistics : ILogistics
 | 
				
			|||||||
        _Logistics2 = new List<Logistics2>();
 | 
					        _Logistics2 = new List<Logistics2>();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Logistics(string reportFullPath, string logistics)
 | 
					    internal Logistics(string reportFullPath, ProcessDataStandardFormat processDataStandardFormat)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string key;
 | 
					        string key;
 | 
				
			||||||
        DateTime dateTime;
 | 
					        DateTime dateTime;
 | 
				
			||||||
        string[] segments;
 | 
					        string[] segments;
 | 
				
			||||||
        _FileInfo = new(reportFullPath);
 | 
					        _FileInfo = new(reportFullPath);
 | 
				
			||||||
        _Logistics1 = logistics.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries).ToList();
 | 
					        _Logistics1 = processDataStandardFormat.Logistics.ToList();
 | 
				
			||||||
        if (Logistics1.Count == 0 || !Logistics1[0].StartsWith("LOGISTICS_1"))
 | 
					        if (Logistics1.Count == 0 || !Logistics1[0].StartsWith("LOGISTICS_1"))
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            _NullData = null;
 | 
					            _NullData = null;
 | 
				
			||||||
@ -190,8 +193,6 @@ public class Logistics : ILogistics
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static string DefaultMesEntity(DateTime dateTime) => string.Concat(dateTime.Ticks, "_MES_ENTITY");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    internal void Update(string mid, string processJobID)
 | 
					    internal void Update(string mid, string processJobID)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        _MID = mid;
 | 
					        _MID = mid;
 | 
				
			||||||
 | 
				
			|||||||
@ -6,23 +6,25 @@ public partial class WS
 | 
				
			|||||||
    public class Attachment
 | 
					    public class Attachment
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public string SubGroupId { get; set; }
 | 
					#nullable enable
 | 
				
			||||||
        public long HeaderId { get; set; }
 | 
					 | 
				
			||||||
        public string HeaderIdDirectory { get; set; }
 | 
					 | 
				
			||||||
        public string UniqueId { get; set; }
 | 
					 | 
				
			||||||
        public string DestinationFileName { get; set; }
 | 
					 | 
				
			||||||
        public string SourceFileName { get; set; }
 | 
					 | 
				
			||||||
        public string AttachmentId { get; set; }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Attachment(string subGroupId, long headerId, string headerIdDirectory, string uniqueId, string destinationFileName, string sourceFileName)
 | 
					        public long HeaderId { get; set; }
 | 
				
			||||||
 | 
					        public string UniqueId { get; set; }
 | 
				
			||||||
 | 
					        public string SubGroupId { get; set; }
 | 
				
			||||||
 | 
					        public string AttachmentId { get; set; }
 | 
				
			||||||
 | 
					        public string SourceFileName { get; set; }
 | 
				
			||||||
 | 
					        public string HeaderIdDirectory { get; set; }
 | 
				
			||||||
 | 
					        public string DestinationFileName { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public Attachment(Results? results, string headerIdDirectory, string uniqueId, string destinationFileName, string sourceFileName)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            SubGroupId = subGroupId;
 | 
					 | 
				
			||||||
            HeaderId = headerId;
 | 
					 | 
				
			||||||
            HeaderIdDirectory = headerIdDirectory;
 | 
					 | 
				
			||||||
            UniqueId = uniqueId;
 | 
					            UniqueId = uniqueId;
 | 
				
			||||||
            DestinationFileName = destinationFileName;
 | 
					 | 
				
			||||||
            SourceFileName = sourceFileName;
 | 
					            SourceFileName = sourceFileName;
 | 
				
			||||||
 | 
					            HeaderIdDirectory = headerIdDirectory;
 | 
				
			||||||
 | 
					            DestinationFileName = destinationFileName;
 | 
				
			||||||
            AttachmentId = System.Guid.NewGuid().ToString();
 | 
					            AttachmentId = System.Guid.NewGuid().ToString();
 | 
				
			||||||
 | 
					            HeaderId = results?.HeaderId is null ? -1 : results.HeaderId.Value;
 | 
				
			||||||
 | 
					            SubGroupId = results?.SubgroupId is null ? string.Empty : results.SubgroupId.Value.ToString();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -1,27 +1,75 @@
 | 
				
			|||||||
using System.Collections.Generic;
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
using System.Text.Json;
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.Shared.Metrology;
 | 
					namespace Adaptation.Shared.Metrology;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public partial class WS
 | 
					public partial class WS
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    // this class represents the response from the Inbound API endpoint
 | 
					
 | 
				
			||||||
    public class Results
 | 
					    public class Results
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        // true or false if data was written to the database
 | 
					 | 
				
			||||||
        public bool Success { get; set; }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // if true, contains ID of the Header record in the database
 | 
					#nullable enable
 | 
				
			||||||
        public long HeaderID { get; set; }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // if false, this collection will contain a list of errors
 | 
					        [JsonConstructor]
 | 
				
			||||||
        public List<string> Errors { get; set; }
 | 
					        public Results(List<string>? errors,
 | 
				
			||||||
 | 
					                       long? headerId,
 | 
				
			||||||
 | 
					                       long? subgroupId,
 | 
				
			||||||
 | 
					                       bool? success,
 | 
				
			||||||
 | 
					                       List<string>? warnings)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Errors = errors;
 | 
				
			||||||
 | 
					            Success = success;
 | 
				
			||||||
 | 
					            HeaderId = headerId;
 | 
				
			||||||
 | 
					            Warnings = warnings;
 | 
				
			||||||
 | 
					            SubgroupId = subgroupId;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // this collection will contain a list of warnings, they will not prevent data from being saved
 | 
					        [JsonPropertyName("errors")] public List<string>? Errors { get; set; }
 | 
				
			||||||
        public List<string> Warnings { get; set; }
 | 
					        [JsonPropertyName("headerID")] public long? HeaderId { get; set; }
 | 
				
			||||||
 | 
					        [JsonPropertyName("subgroupId")] public long? SubgroupId { get; set; }
 | 
				
			||||||
 | 
					        [JsonPropertyName("success")] public bool? Success { get; set; }
 | 
				
			||||||
 | 
					        [JsonPropertyName("warnings")] public List<string>? Warnings { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public override string ToString()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            string result = JsonSerializer.Serialize(this, ResultsSourceGenerationContext.Default.Results);
 | 
				
			||||||
 | 
					            return result;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal static Results Get(Results results, long? subgroupId) =>
 | 
				
			||||||
 | 
					            new(results.Errors, results.HeaderId, subgroupId, results.Success, results.Warnings);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        internal static Results Get(string resultsJson, Exception e)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Results results;
 | 
				
			||||||
 | 
					            Exception? exception = e;
 | 
				
			||||||
 | 
					            List<string> errors = new();
 | 
				
			||||||
 | 
					            StringBuilder stringBuilder = new();
 | 
				
			||||||
 | 
					            while (exception is not null)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                _ = stringBuilder.AppendLine(exception.Message);
 | 
				
			||||||
 | 
					                exception = exception.InnerException;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            errors.Add(resultsJson);
 | 
				
			||||||
 | 
					            errors.Add(stringBuilder.ToString());
 | 
				
			||||||
 | 
					            results = new(errors: errors,
 | 
				
			||||||
 | 
					                          headerId: null,
 | 
				
			||||||
 | 
					                          subgroupId: null,
 | 
				
			||||||
 | 
					                          success: false,
 | 
				
			||||||
 | 
					                          warnings: new());
 | 
				
			||||||
 | 
					            return results;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // this is just a helper function to make displaying the results easier
 | 
					 | 
				
			||||||
        public override string ToString() => JsonSerializer.Serialize(this, GetType());
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(WS.Results))]
 | 
				
			||||||
 | 
					internal partial class ResultsSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -10,9 +10,11 @@ namespace Adaptation.Shared.Metrology;
 | 
				
			|||||||
public partial class WS
 | 
					public partial class WS
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static (string, Results) SendData(string url, long sequence, string directory, 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? wsResults = null;
 | 
				
			||||||
        string resultsJson = string.Empty;
 | 
					        string resultsJson = string.Empty;
 | 
				
			||||||
        try
 | 
					        try
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -30,29 +32,20 @@ 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 });
 | 
					                wsResults = JsonSerializer.Deserialize(resultsJson, ResultsSourceGenerationContext.Default.Results);
 | 
				
			||||||
                string checkDirectory = Path.Combine(directory, $"-{results.HeaderID}");
 | 
					                if (wsResults is null)
 | 
				
			||||||
 | 
					                    throw new NullReferenceException(nameof(wsResults));
 | 
				
			||||||
 | 
					                string checkDirectory = Path.Combine(directory, $"-{wsResults.HeaderId}");
 | 
				
			||||||
                if (!Directory.Exists(checkDirectory))
 | 
					                if (!Directory.Exists(checkDirectory))
 | 
				
			||||||
                    _ = Directory.CreateDirectory(checkDirectory);
 | 
					                    _ = Directory.CreateDirectory(checkDirectory);
 | 
				
			||||||
                File.WriteAllText(Path.Combine(checkDirectory, $"{sequence}.json"), json);
 | 
					                File.WriteAllText(Path.Combine(checkDirectory, $"{sequence}.json"), json);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (!results.Success)
 | 
					            if (wsResults.Success is null || !wsResults.Success.Value)
 | 
				
			||||||
                results.Errors.Add(results.ToString());
 | 
					                wsResults.Errors?.Add(wsResults.ToString());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (Exception e)
 | 
					        catch (Exception e)
 | 
				
			||||||
        {
 | 
					        { wsResults ??= Results.Get(resultsJson, e); }
 | 
				
			||||||
            Exception exception = e;
 | 
					        return new(resultsJson, wsResults);
 | 
				
			||||||
            StringBuilder stringBuilder = new();
 | 
					 | 
				
			||||||
            while (exception is not null)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                _ = stringBuilder.AppendLine(exception.Message);
 | 
					 | 
				
			||||||
                exception = exception.InnerException;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            results.Errors ??= new List<string>();
 | 
					 | 
				
			||||||
            results.Errors.Add(resultsJson);
 | 
					 | 
				
			||||||
            results.Errors.Add(stringBuilder.ToString());
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return new(resultsJson, results);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static void AttachFile(string url, Attachment attachment, int timeoutSeconds = 60)
 | 
					    public static void AttachFile(string url, Attachment attachment, int timeoutSeconds = 60)
 | 
				
			||||||
@ -69,16 +62,20 @@ public partial class WS
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static void AttachFiles(string url, List<Attachment> headerAttachments = null, List<Attachment> dataAttachments = null)
 | 
					    public static void AttachFiles(string url, List<Attachment>? headerAttachments = null, List<Attachment>? dataAttachments = null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string directory;
 | 
					        string directory;
 | 
				
			||||||
        try
 | 
					        try
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            string? directoryName;
 | 
				
			||||||
            if (headerAttachments is not null)
 | 
					            if (headerAttachments is not null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                foreach (Attachment attachment in headerAttachments)
 | 
					                foreach (Attachment attachment in headerAttachments)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    directory = Path.Combine(Path.GetDirectoryName(attachment.HeaderIdDirectory), attachment.AttachmentId) ?? throw new Exception();
 | 
					                    directoryName = Path.GetDirectoryName(attachment.HeaderIdDirectory);
 | 
				
			||||||
 | 
					                    if (string.IsNullOrEmpty(directoryName))
 | 
				
			||||||
 | 
					                        continue;
 | 
				
			||||||
 | 
					                    directory = Path.Combine(directoryName, attachment.AttachmentId) ?? throw new Exception();
 | 
				
			||||||
                    if (!Directory.Exists(directory))
 | 
					                    if (!Directory.Exists(directory))
 | 
				
			||||||
                        _ = Directory.CreateDirectory(directory);
 | 
					                        _ = Directory.CreateDirectory(directory);
 | 
				
			||||||
                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
					                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
				
			||||||
@ -88,7 +85,10 @@ public partial class WS
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                foreach (Attachment attachment in dataAttachments)
 | 
					                foreach (Attachment attachment in dataAttachments)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    directory = Path.Combine(Path.GetDirectoryName(attachment.HeaderIdDirectory.Replace("Header", "Data")), attachment.AttachmentId) ?? throw new Exception();
 | 
					                    directoryName = Path.GetDirectoryName(attachment.HeaderIdDirectory.Replace("Header", "Data"));
 | 
				
			||||||
 | 
					                    if (string.IsNullOrEmpty(directoryName))
 | 
				
			||||||
 | 
					                        continue;
 | 
				
			||||||
 | 
					                    directory = Path.Combine(directoryName, attachment.AttachmentId) ?? throw new Exception();
 | 
				
			||||||
                    if (!Directory.Exists(directory))
 | 
					                    if (!Directory.Exists(directory))
 | 
				
			||||||
                        _ = Directory.CreateDirectory(directory);
 | 
					                        _ = Directory.CreateDirectory(directory);
 | 
				
			||||||
                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
					                    File.Copy(attachment.SourceFileName, Path.Combine(directory, attachment.DestinationFileName), overwrite: true);
 | 
				
			||||||
@ -108,7 +108,7 @@ public partial class WS
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (Exception e)
 | 
					        catch (Exception e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Exception exception = e;
 | 
					            Exception? exception = e;
 | 
				
			||||||
            StringBuilder stringBuilder = new();
 | 
					            StringBuilder stringBuilder = new();
 | 
				
			||||||
            while (exception is not null)
 | 
					            while (exception is not null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								Adaptation/Shared/ProcessData.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Adaptation/Shared/ProcessData.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										34
									
								
								Adaptation/Shared/ProcessDataStandardFormatMapping.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Adaptation/Shared/ProcessDataStandardFormatMapping.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.Shared;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class ProcessDataStandardFormatMapping
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<int> ColumnIndices { get; private set; }
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<string> NewColumnNames { get; private set; }
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<string> OldColumnNames { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public ProcessDataStandardFormatMapping(ReadOnlyCollection<int> columnIndices,
 | 
				
			||||||
 | 
					                                            ReadOnlyCollection<string> newColumnNames,
 | 
				
			||||||
 | 
					                                            ReadOnlyCollection<string> oldColumnNames)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        ColumnIndices = columnIndices;
 | 
				
			||||||
 | 
					        NewColumnNames = newColumnNames;
 | 
				
			||||||
 | 
					        OldColumnNames = oldColumnNames;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static ProcessDataStandardFormatMapping Get(string processDataStandardFormatMappingOldColumnNames, string processDataStandardFormatMappingNewColumnNames, string processDataStandardFormatMappingColumnIndices)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        ProcessDataStandardFormatMapping result;
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> newColumnNames = new(processDataStandardFormatMappingNewColumnNames.Split(','));
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> oldColumnNames = new(processDataStandardFormatMappingOldColumnNames.Split(','));
 | 
				
			||||||
 | 
					        ReadOnlyCollection<int> columnIndices = new(processDataStandardFormatMappingColumnIndices.Split(',').Select(int.Parse).ToArray());
 | 
				
			||||||
 | 
					        result = new(columnIndices: columnIndices,
 | 
				
			||||||
 | 
					                     newColumnNames: newColumnNames,
 | 
				
			||||||
 | 
					                     oldColumnNames: oldColumnNames);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_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;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_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;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_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;
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,65 @@
 | 
				
			|||||||
 | 
					#if v2_59_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.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD2 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD2(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 Production__v2_59_0__BIORAD2__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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,65 @@
 | 
				
			|||||||
 | 
					#if v2_59_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.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD3 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD3(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 Production__v2_59_0__BIORAD3__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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,182 @@
 | 
				
			|||||||
 | 
					#if v2_59_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.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static MET08THFTIRQS408M EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static MET08THFTIRQS408M() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new MET08THFTIRQS408M(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 Production__v2_59_0__MET08THFTIRQS408M__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 Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_59_0__MET08THFTIRQS408M__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 Production__v2_59_0__MET08THFTIRQS408M__OpenInsight()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_59_0__MET08THFTIRQS408M__APC()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_59_0__MET08THFTIRQS408M__SPaCe()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_59_0__MET08THFTIRQS408M__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 Production__v2_59_0__MET08THFTIRQS408M__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 Production__v2_59_0__MET08THFTIRQS408M__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637406068146286000.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,76 @@
 | 
				
			|||||||
 | 
					#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.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD2 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD2(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 Production__v2_60_0__BIORAD2__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__BIORAD2__pdsf()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*EQP_*.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"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					#if v2_60_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.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD3 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD3(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 Production__v2_60_0__BIORAD3__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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,182 @@
 | 
				
			|||||||
 | 
					#if v2_60_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.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static MET08THFTIRQS408M EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static MET08THFTIRQS408M() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new MET08THFTIRQS408M(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 Production__v2_60_0__MET08THFTIRQS408M__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 Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__MET08THFTIRQS408M__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 Production__v2_60_0__MET08THFTIRQS408M__OpenInsight()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__MET08THFTIRQS408M__APC()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__MET08THFTIRQS408M__SPaCe()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_60_0__MET08THFTIRQS408M__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 Production__v2_60_0__MET08THFTIRQS408M__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 Production__v2_60_0__MET08THFTIRQS408M__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637406068146286000.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,76 @@
 | 
				
			|||||||
 | 
					#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.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD2 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD2(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 Production__v2_61_1__BIORAD2__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__BIORAD2__pdsf()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*EQP_*.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"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					#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.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD3 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD3(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 Production__v2_61_1__BIORAD3__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        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,182 @@
 | 
				
			|||||||
 | 
					#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.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static MET08THFTIRQS408M EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static MET08THFTIRQS408M() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRQS408M(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new MET08THFTIRQS408M(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 Production__v2_61_1__MET08THFTIRQS408M__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 Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__MET08THFTIRQS408M__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 Production__v2_61_1__MET08THFTIRQS408M__OpenInsight()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__MET08THFTIRQS408M__APC()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__MET08THFTIRQS408M__SPaCe()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        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 Production__v2_61_1__MET08THFTIRQS408M__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 Production__v2_61_1__MET08THFTIRQS408M__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 Production__v2_61_1__MET08THFTIRQS408M__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637406068146286000.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,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_0
 | 
				
			||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_0
 | 
				
			||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
#if true
 | 
					#if v2_58_0
 | 
				
			||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										151
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										151
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,151 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD2 _BIORAD2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD2.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD2 = CreateSelfDescription.Production.v2_59_0.BIORAD2.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M() => _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M638185231662401081__NinePoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M638185291035612698__FourteenPoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M638206292859940029__EpiPro()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M638211310710952565__WMO()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD2__QS408M638635290101315251__ADO126448()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_59_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										85
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										85
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,85 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD3 _BIORAD3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD3.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD3 = CreateSelfDescription.Production.v2_59_0.BIORAD3.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD3__QS408M() => _BIORAD3.Production__v2_59_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD3__QS408M637406016892454000__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_59_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD3__QS408M638227775101723135__Error()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_59_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,158 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.MET08THFTIRQS408M _MET08THFTIRQS408M;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.MET08THFTIRQS408M.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M = CreateSelfDescription.Production.v2_59_0.MET08THFTIRQS408M.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__MoveMatchingFiles() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__IQSSi() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__IQSSi638402505394171507__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__OpenInsight() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__OpenInsight638042558563679143__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__OpenInsight638662107339513927__Long()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__APC() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__APC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__SPaCe() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__SPaCe();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__Processed() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__Archive() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRQS408M__Dummy() => _MET08THFTIRQS408M.Production__v2_59_0__MET08THFTIRQS408M__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										157
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										157
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,157 @@
 | 
				
			|||||||
 | 
					#if v2_60_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.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD2 _BIORAD2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD2.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD2 = CreateSelfDescription.Production.v2_60_0.BIORAD2.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M() => _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M638185231662401081__NinePoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M638185291035612698__FourteenPoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M638206292859940029__EpiPro()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M638211310710952565__WMO()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__QS408M638635290101315251__ADO126448()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD2__pdsf638925042012952259__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*EQP_*.pdsf";
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_60_0__BIORAD2__pdsf();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										79
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,79 @@
 | 
				
			|||||||
 | 
					#if v2_60_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD3 _BIORAD3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD3.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD3 = CreateSelfDescription.Production.v2_60_0.BIORAD3.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD3__QS408M() => _BIORAD3.Production__v2_60_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD3__QS408M637406016892454000__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_60_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD3__QS408M638227775101723135__Error()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_60_0__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,181 @@
 | 
				
			|||||||
 | 
					#if v2_60_0
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.MET08THFTIRQS408M _MET08THFTIRQS408M;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.MET08THFTIRQS408M.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M = CreateSelfDescription.Production.v2_60_0.MET08THFTIRQS408M.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__MoveMatchingFiles() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__MoveMatchingFiles638402505394171507__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        string test = System.Text.RegularExpressions.Regex.Replace("Thickness 14 5mm Edge % from R/2", @"[^a-zA-Z0-9]", "_").Split('\r')[0].Split('\n')[0];
 | 
				
			||||||
 | 
					        Assert.AreEqual("Thickness_14_5mm_Edge___from_R_2", test);
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__IQSSi() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__IQSSi638402505394171507__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__OpenInsight() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__OpenInsight638042558563679143__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__OpenInsight638662107339513927__Long()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__APC() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__APC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__SPaCe() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__SPaCe();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__Processed() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__Archive() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRQS408M__Dummy() => _MET08THFTIRQS408M.Production__v2_60_0__MET08THFTIRQS408M__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										157
									
								
								Adaptation/_Tests/Extract/Production/v2.61.1/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										157
									
								
								Adaptation/_Tests/Extract/Production/v2.61.1/BIORAD2.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,157 @@
 | 
				
			|||||||
 | 
					#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.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD2
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_61_1.BIORAD2 _BIORAD2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_61_1.BIORAD2.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD2 = CreateSelfDescription.Production.v2_61_1.BIORAD2.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M() => _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M638185231662401081__NinePoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M638185291035612698__FourteenPoint()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M638206292859940029__EpiPro()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M638211310710952565__WMO()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__QS408M638635290101315251__ADO126448()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD2__pdsf638925042012952259__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*EQP_*.pdsf";
 | 
				
			||||||
 | 
					        _BIORAD2.Production__v2_61_1__BIORAD2__pdsf();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										79
									
								
								Adaptation/_Tests/Extract/Production/v2.61.1/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								Adaptation/_Tests/Extract/Production/v2.61.1/BIORAD3.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,79 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD3
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_61_1.BIORAD3 _BIORAD3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_61_1.BIORAD3.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD3 = CreateSelfDescription.Production.v2_61_1.BIORAD3.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD3__QS408M() => _BIORAD3.Production__v2_61_1__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD3__QS408M637406016892454000__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_61_1__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__BIORAD3__QS408M638227775101723135__Error()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.txt";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        _BIORAD3.Production__v2_61_1__BIORAD3__QS408M();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,179 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_61_1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRQS408M
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_61_1.MET08THFTIRQS408M _MET08THFTIRQS408M;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_61_1.MET08THFTIRQS408M.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M = CreateSelfDescription.Production.v2_61_1.MET08THFTIRQS408M.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__MoveMatchingFiles() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__MoveMatchingFiles638402505394171507__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        string test = System.Text.RegularExpressions.Regex.Replace("Thickness 14 5mm Edge % from R/2", @"[^a-zA-Z0-9]", "_").Split('\r')[0].Split('\n')[0];
 | 
				
			||||||
 | 
					        Assert.AreEqual("Thickness_14_5mm_Edge___from_R_2", test);
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__IQSSi() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__IQSSi638402505394171507__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__IQSSi();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__OpenInsight() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__OpenInsight638042558563679143__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__OpenInsight638662107339513927__Long()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__APC() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__APC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__SPaCe() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__SPaCe();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__Processed() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__Archive() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_61_1__MET08THFTIRQS408M__Dummy() => _MET08THFTIRQS408M.Production__v2_61_1__MET08THFTIRQS408M__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -51,7 +51,7 @@ public class MET08THFTIRQS408M : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
    public void TestDateTime()
 | 
					    public void TestDateTime()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        DateTime dateTime = DateTime.Now;
 | 
					        DateTime dateTime = DateTime.Now;
 | 
				
			||||||
        Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
 | 
					        Assert.AreEqual(dateTime.ToString(), dateTime.ToString("M/d/yyyy h:mm:ss tt"));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
@ -64,7 +64,7 @@ public class MET08THFTIRQS408M : 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("MET08THFTIRQS408M", "v2.58.0"),
 | 
					            new("MET08THFTIRQS408M", "v2.61.1"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        string production = "http://messa08ec.infineon.com:9003/CellInstanceServiceV2";
 | 
					        string production = "http://messa08ec.infineon.com:9003/CellInstanceServiceV2";
 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
				
			||||||
 | 
				
			|||||||
@ -52,7 +52,7 @@ public class QS408M : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
    public void TestDateTime()
 | 
					    public void TestDateTime()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        DateTime dateTime = DateTime.Now;
 | 
					        DateTime dateTime = DateTime.Now;
 | 
				
			||||||
        Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
 | 
					        Assert.AreEqual(dateTime.ToString(), dateTime.ToString("M/d/yyyy h:mm:ss tt"));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [TestMethod]
 | 
					    [TestMethod]
 | 
				
			||||||
@ -69,22 +69,22 @@ public class QS408M : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("12-123456-1234");
 | 
					        descriptor = ProcessData.GetDescriptor("12-123456-1234");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "12");
 | 
					        Assert.AreEqual("12", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "123456");
 | 
					        Assert.AreEqual("123456", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(descriptor.PSN is "1234");
 | 
					        Assert.AreEqual("1234", descriptor.PSN);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("123456");
 | 
					        descriptor = ProcessData.GetDescriptor("123456");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "123456");
 | 
					        Assert.AreEqual("123456", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("1T123456");
 | 
					        descriptor = ProcessData.GetDescriptor("1T123456");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "123456");
 | 
					        Assert.AreEqual("123456", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
@ -93,92 +93,92 @@ public class QS408M : LoggingUnitTesting, IDisposable
 | 
				
			|||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Employee is "MP");
 | 
					        Assert.AreEqual("MP", descriptor.Employee);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("12-123456-1234.2-1");
 | 
					        descriptor = ProcessData.GetDescriptor("12-123456-1234.2-1");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "12");
 | 
					        Assert.AreEqual("12", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "123456");
 | 
					        Assert.AreEqual("123456", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(descriptor.PSN is "1234");
 | 
					        Assert.AreEqual("1234", descriptor.PSN);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Layer is "2");
 | 
					        Assert.AreEqual("2", descriptor.Layer);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Zone is "1");
 | 
					        Assert.AreEqual("1", descriptor.Zone);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("12-123456-1234.02-1");
 | 
					        descriptor = ProcessData.GetDescriptor("12-123456-1234.02-1");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "12");
 | 
					        Assert.AreEqual("12", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "123456");
 | 
					        Assert.AreEqual("123456", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(descriptor.PSN is "1234");
 | 
					        Assert.AreEqual("1234", descriptor.PSN);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Layer is "2");
 | 
					        Assert.AreEqual("2", descriptor.Layer);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Zone is "1");
 | 
					        Assert.AreEqual("1", descriptor.Zone);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("20");
 | 
					        descriptor = ProcessData.GetDescriptor("20");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "20");
 | 
					        Assert.AreEqual("20", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("20.2");
 | 
					        descriptor = ProcessData.GetDescriptor("20.2");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "20");
 | 
					        Assert.AreEqual("20", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Layer is "2");
 | 
					        Assert.AreEqual("2", descriptor.Layer);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("20.2.1");
 | 
					        descriptor = ProcessData.GetDescriptor("20.2.1");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Layer is "2");
 | 
					        Assert.AreEqual("2", descriptor.Layer);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "20");
 | 
					        Assert.AreEqual("20", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Zone is "1");
 | 
					        Assert.AreEqual("1", descriptor.Zone);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("20.1.1");
 | 
					        descriptor = ProcessData.GetDescriptor("20.1.1");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Layer is "1");
 | 
					        Assert.AreEqual("1", descriptor.Layer);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "20");
 | 
					        Assert.AreEqual("20", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(descriptor.Zone is "1");
 | 
					        Assert.AreEqual("1", descriptor.Zone);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("P2-LOW-RR");
 | 
					        descriptor = ProcessData.GetDescriptor("P2-LOW-RR");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(descriptor.PSN is "RR");
 | 
					        Assert.AreEqual("RR", descriptor.PSN);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "P2");
 | 
					        Assert.AreEqual("P2", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("i171308.1.51");
 | 
					        descriptor = ProcessData.GetDescriptor("i171308.1.51");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "i171308.1.51");
 | 
					        Assert.AreEqual("i171308.1.51", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("o171308.1.51");
 | 
					        descriptor = ProcessData.GetDescriptor("o171308.1.51");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "o171308.1.51");
 | 
					        Assert.AreEqual("o171308.1.51", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("O171308.1.51");
 | 
					        descriptor = ProcessData.GetDescriptor("O171308.1.51");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "O171308.1.51");
 | 
					        Assert.AreEqual("O171308.1.51", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("171308.1.51");
 | 
					        descriptor = ProcessData.GetDescriptor("171308.1.51");
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
        Assert.IsTrue(descriptor.RDS is "171308.1.51");
 | 
					        Assert.AreEqual("171308.1.51", descriptor.RDS);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("75-QP1414-SPLIT4");
 | 
					        descriptor = ProcessData.GetDescriptor("75-QP1414-SPLIT4");
 | 
				
			||||||
        // Assert.IsTrue(!string.IsNullOrEmpty(descriptor.Lot));
 | 
					        // Assert.IsFalse(string.IsNullOrEmpty(descriptor.Lot));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
 | 
				
			||||||
        Assert.IsTrue(descriptor.PSN is "SPLIT4");
 | 
					        Assert.AreEqual("SPLIT4", descriptor.PSN);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.RDS));
 | 
				
			||||||
        Assert.IsTrue(descriptor.Reactor is "75");
 | 
					        Assert.AreEqual("75", descriptor.Reactor);
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = ProcessData.GetDescriptor("B48");
 | 
					        descriptor = ProcessData.GetDescriptor("B48");
 | 
				
			||||||
@ -203,8 +203,8 @@ public class QS408M : 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("BIORAD2", "v2.58.0"),
 | 
					            new("BIORAD2", "v2.61.1"),
 | 
				
			||||||
            new("BIORAD3", "v2.58.0"),
 | 
					            new("BIORAD3", "v2.61.1"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        string production = "http://messa08ec.infineon.com:9003/CellInstanceServiceV2";
 | 
					        string production = "http://messa08ec.infineon.com:9003/CellInstanceServiceV2";
 | 
				
			||||||
        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
					        Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										258
									
								
								Adaptation/_Tests/Static/bio-rad.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										258
									
								
								Adaptation/_Tests/Static/bio-rad.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,258 @@
 | 
				
			|||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('gv.thicknessPoints', ''), $('dcp.BIORAD2/csv/Index', '0'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getCollectionParseFloat(collection) {
 | 
				
			||||||
 | 
					    let result = [];
 | 
				
			||||||
 | 
					    let value;
 | 
				
			||||||
 | 
					    for (let i = 0; i < collection.length; i++) {
 | 
				
			||||||
 | 
					        value = parseFloat(collection[i]);
 | 
				
			||||||
 | 
					        result.push(value);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getSum(collection) {
 | 
				
			||||||
 | 
					    let result = 0;
 | 
				
			||||||
 | 
					    if (!collection || collection.length === 0) {
 | 
				
			||||||
 | 
					        result = 0;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        for (let i = 0; i < collection.length; i++) {
 | 
				
			||||||
 | 
					            result += collection[i];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getAverage(collection) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (collection == null || collection.length === 0)
 | 
				
			||||||
 | 
					        result = 0;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let sum = getSum(collection);
 | 
				
			||||||
 | 
					        result = sum / collection.length;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue39(thicknessPoints, index) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (index === 13) {
 | 
				
			||||||
 | 
					        if (thicknessPoints != undefined && thicknessPoints.length > 1) {
 | 
				
			||||||
 | 
					            let collection = thicknessPoints[0] === '|' ? thicknessPoints.substring(1).split('|') : thicknessPoints.split('|');
 | 
				
			||||||
 | 
					            let collectionParseFloat = getCollectionParseFloat(collection);
 | 
				
			||||||
 | 
					            let thicknessFourteen3mmEdgeMean = getAverage([[collectionParseFloat[10], collectionParseFloat[11], collectionParseFloat[12], collectionParseFloat[13]]]);
 | 
				
			||||||
 | 
					            let thicknessFourteenMeanFrom = getAverage([[collectionParseFloat[1], collectionParseFloat[2], collectionParseFloat[6], collectionParseFloat[7]]]);
 | 
				
			||||||
 | 
					            result = (thicknessFourteen3mmEdgeMean - thicknessFourteenMeanFrom) / thicknessFourteenMeanFrom * 100;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getVariance(collection) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (collection == null || collection.length === 0)
 | 
				
			||||||
 | 
					        result = null;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let variance = 0;
 | 
				
			||||||
 | 
					        let t = collection[0];
 | 
				
			||||||
 | 
					        for (let i = 1; i < collection.length; i++) {
 | 
				
			||||||
 | 
					            t += collection[i];
 | 
				
			||||||
 | 
					            const diff = ((i + 1) * collection[i]) - t;
 | 
				
			||||||
 | 
					            variance += diff * diff / ((i + 1.0) * i);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        result = variance / (collection.length - 1);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// $('gv.thicknessPoints', '') + '|' + $('dcp.BIORAD2/csv/Thickness', '')
 | 
				
			||||||
 | 
					// $('gv.thicknessPoints', '') + '|' + $('dcp.BIORAD3/csv/Thickness', '')
 | 
				
			||||||
 | 
					// $('gv.thicknessPoints', '') + '|' + $('dcp.BIORAD4/csv/Thickness', '')
 | 
				
			||||||
 | 
					// $('gv.thicknessPoints', '') + '|' + $('dcp.BIORAD5/b-csv/Thickness', '')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// \\mesfs.infineon.com\EC_Characterization_Si\Archive\BIORAD2\2025_Week_08\2025-02-20\64-659712-4626_2025-02-20_11;50_AM_5144331401\638756490128318288
 | 
				
			||||||
 | 
					//                                                  0     1     2     3     4     5     6     7     8     9     10    11    12    13
 | 
				
			||||||
 | 
					//                                                  1     2     3     4     5     6     7     8     9     10    11    12    13    14
 | 
				
			||||||
 | 
					const thicknessPoints = getCollectionParseFloat('|4.022|3.952|3.936|3.971|3.954|3.976|3.949|3.906|3.967|3.995|3.997|3.932|3.766|3.890'.substring(1).split('|'));
 | 
				
			||||||
 | 
					const thicknessTenPoints = thicknessPoints.slice(0, 10);
 | 
				
			||||||
 | 
					const thicknessFourteenCriticalPointsAverage = getAverage(thicknessTenPoints); // 15 // *3.962799999999999
 | 
				
			||||||
 | 
					const thicknessFourteenCriticalPointsStdDev = Math.sqrt(getVariance(thicknessTenPoints)); // 16 // *0.0318496467798311
 | 
				
			||||||
 | 
					const thicknessFourteenCenterMean = thicknessPoints[4]; // 17 // 3.954
 | 
				
			||||||
 | 
					const thicknessFourteenMeanFrom = getAverage([thicknessPoints[1], thicknessPoints[2], thicknessPoints[6], thicknessPoints[7]]); // 18 // *3.954
 | 
				
			||||||
 | 
					const thicknessFourteen5mmEdgeMean = getAverage([thicknessPoints[0], thicknessPoints[9]]); // 19 // *4.0085
 | 
				
			||||||
 | 
					const thicknessFourteen3mmEdgeMean = getAverage([thicknessPoints[10], thicknessPoints[11], thicknessPoints[12], thicknessPoints[13]]); // 20 // *3.89625
 | 
				
			||||||
 | 
					const thicknessFourteen5mmEdgePercent = (thicknessFourteen5mmEdgeMean - thicknessFourteenMeanFrom) / thicknessFourteenMeanFrom * 100; // 21 // *1.848440576764267
 | 
				
			||||||
 | 
					const thicknessFourteen3mmEdgePercent = (thicknessFourteen3mmEdgeMean - thicknessFourteenMeanFrom) / thicknessFourteenMeanFrom * 100; // 22 // *-1.0036206567998442
 | 
				
			||||||
 | 
					console.log(thicknessFourteenCriticalPointsAverage);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('dcp.BIORAD2/csv/Batch', ''), $('dcp.BIORAD2/csv/Wafer', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getSlot92(wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (wafer.length !== 1 && wafer.length !== 2)
 | 
				
			||||||
 | 
					        result = null;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let slot = parseInt(wafer);
 | 
				
			||||||
 | 
					        if (slot < 1 || slot > 27)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = slot < 10 ? '0' + slot : slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getBatch(batch, jobId, wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot92(wafer);
 | 
				
			||||||
 | 
					    result = slot == null ? jobId : batch;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getWafer(wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot92(wafer);
 | 
				
			||||||
 | 
					    result = slot == null ? wafer : slot;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue120(batch, wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot92(wafer);
 | 
				
			||||||
 | 
					    const value = slot == null ? wafer : batch;
 | 
				
			||||||
 | 
					    result = value.replace(/[\{\}\\\/\:\*\?\"\<\>\|]/g, '_');
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values128 = [
 | 
				
			||||||
 | 
					    { wafer: '11', jobId: 'BIORAD2', batch: 'O172068.1.60', waferCheck: '11', batchCheck: 'O172068.1.60', mid: 'O172068.1.60' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5008', jobId: 'BIORAD2', batch: 'BIORAD#2', waferCheck: '27-588493-5008', batchCheck: 'BIORAD2', mid: '27-588493-5008' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5"008', jobId: 'BIORAD2', batch: 'BIORAD#2', waferCheck: '27-588493-5008', batchCheck: 'BIORAD2', mid: '27-588493-5_008' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const wafer = "11";
 | 
				
			||||||
 | 
					const jobId = "BIORAD2";
 | 
				
			||||||
 | 
					const batch = "O172068.1.60";
 | 
				
			||||||
 | 
					const waferCheck = getWafer(wafer);
 | 
				
			||||||
 | 
					const batchCheck = getBatch(batch, jobId, wafer);
 | 
				
			||||||
 | 
					const mid = getValue120(batch, wafer);
 | 
				
			||||||
 | 
					console.log(mid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values128.forEach(element => {
 | 
				
			||||||
 | 
					    let mid = getValue120(element.batch, element.wafer);
 | 
				
			||||||
 | 
					    if (mid != element.mid)
 | 
				
			||||||
 | 
					        console.error("MID doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// '{"Area": "' +
 | 
				
			||||||
 | 
					// 'Si' +
 | 
				
			||||||
 | 
					// '", "EquipmentType": "' +
 | 
				
			||||||
 | 
					// 'MET08THFTIRQS408M' +
 | 
				
			||||||
 | 
					// '", "MesEntity": "' +
 | 
				
			||||||
 | 
					// $('dcp.BIORAD2/csv/MesEntity', '') +
 | 
				
			||||||
 | 
					// '", "Sequence": "' +
 | 
				
			||||||
 | 
					// $('dcp.BIORAD2/csv/Sequence', '') +
 | 
				
			||||||
 | 
					// '", "MID": "' +
 | 
				
			||||||
 | 
					// getValue($('dcp.BIORAD2/csv/Batch', ''), $('dcp.BIORAD2/csv/Wafer', '')) +
 | 
				
			||||||
 | 
					// '", "Recipe": "' +
 | 
				
			||||||
 | 
					// $('dcp.BIORAD2/csv/Recipe', '').split('"')[0].split('\\')[0] +
 | 
				
			||||||
 | 
					// '"}';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getSlot164(wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (wafer.length !== 1 && wafer.length !== 2)
 | 
				
			||||||
 | 
					        result = null;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let slot = parseInt(wafer);
 | 
				
			||||||
 | 
					        if (slot < 1 || slot > 27)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = slot < 10 ? '0' + slot : slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue178(batch, wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot164(wafer);
 | 
				
			||||||
 | 
					    const value = slot == null ? wafer : batch;
 | 
				
			||||||
 | 
					    result = value.replace(/[\{\}\\\/\:\*\?\"\<\>\|]/g, '_');
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue(self, $('dcp.BIORAD2/csv/Wafer', ''), getContextData('2', 'cds.MID', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getSlot188(wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (wafer.length !== 1 && wafer.length !== 2)
 | 
				
			||||||
 | 
					        result = null;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let slot = parseInt(wafer);
 | 
				
			||||||
 | 
					        if (slot < 1 || slot > 27)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = slot < 10 ? '0' + slot : slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue202(batch, wafer, mid) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot188(wafer);
 | 
				
			||||||
 | 
					    result = slot == null ? batch : mid;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values210 = [
 | 
				
			||||||
 | 
					    { wafer: '11', jobId: 'BIORAD2', batch: 'O172068.1.60', mid: '*O172068.1.60', result: '*O172068.1.60' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5008', jobId: 'BIORAD2', batch: 'BIORAD#2', mid: '*588493', result: 'BIORAD#2' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5"008', jobId: 'BIORAD2', batch: 'BIORAD#2', mid: '*588493', result: 'BIORAD#2' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values210.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue202(element.batch, element.wafer, element.mid);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue(self, getContextData('2', 'cds.MID', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getSlot(wafer) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (wafer.length !== 1 && wafer.length !== 2)
 | 
				
			||||||
 | 
					        result = null;
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        let slot = parseInt(wafer);
 | 
				
			||||||
 | 
					        if (slot < 1 || slot > 27)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = slot < 10 ? '0' + slot : slot;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue(wafer, mid) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    const slot = getSlot(wafer);
 | 
				
			||||||
 | 
					    result = slot == null ? mid : wafer;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values246 = [
 | 
				
			||||||
 | 
					    { wafer: '11', jobId: 'BIORAD2', batch: 'O172068.1.60', mid: '*O172068.1.60', result: '11' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5008', jobId: 'BIORAD2', batch: 'BIORAD#2', mid: '*588493', result: '*588493' },
 | 
				
			||||||
 | 
					    { wafer: '27-588493-5"008', jobId: 'BIORAD2', batch: 'BIORAD#2', mid: '*588493', result: '*588493' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values246.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue(element.wafer, element.mid);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
							
								
								
									
										133
									
								
								Adaptation/_Tests/Static/recipes-and-patterns.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										133
									
								
								Adaptation/_Tests/Static/recipes-and-patterns.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,133 @@
 | 
				
			|||||||
 | 
					// Recipe 1 = Matched
 | 
				
			||||||
 | 
					// recipes-and-patterns.js under IndexOf
 | 
				
			||||||
 | 
					// RecipesAndPatternsMatch
 | 
				
			||||||
 | 
					// ($('dcp.BIORAD2/csv/Index', 0) + 1) == $('dcp.BIORAD2/csv/Count', 0)
 | 
				
			||||||
 | 
					// getValue('FTIR', $('dcp.BIORAD2/csv/Count', 0), $('dcp.BIORAD2/csv/Recipe', ''), 'pattern', getContextData('2', 'cds.NULL_DATA', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue(tool, patternSize, recipe, pattern, json) {
 | 
				
			||||||
 | 
					    let result;
 | 
				
			||||||
 | 
					    if (recipe.toUpperCase() === 'T-LOW')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else if (recipe.toUpperCase() === 'T-MID')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else if (recipe.toUpperCase() === 'T-HIGH')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else if (recipe.toUpperCase() === 'T_LOW')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else if (recipe.toUpperCase() === 'T_MID')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else if (recipe.toUpperCase() === 'T_HIGH')
 | 
				
			||||||
 | 
					        result = '1';
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        if (tool == undefined || tool.length === 0 || patternSize == undefined || patternSize.length === 0 || recipe == undefined || recipe.length === 0 || pattern == undefined || pattern.length === 0 || json == undefined || json.length === 0)
 | 
				
			||||||
 | 
					            result = 'A) Invalid input!';
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            let parsed;
 | 
				
			||||||
 | 
					            try {
 | 
				
			||||||
 | 
					                parsed = JSON.parse(json);
 | 
				
			||||||
 | 
					            } catch (error) {
 | 
				
			||||||
 | 
					                parsed = null;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if (parsed == null)
 | 
				
			||||||
 | 
					                result = 'B) Invalid input!';
 | 
				
			||||||
 | 
					            else if (parsed.rds == undefined || parsed.rds.prodSpec == undefined || parsed.rds.prodSpec.recipesAndPatterns == undefined)
 | 
				
			||||||
 | 
					                result = 'C) No Spec!';
 | 
				
			||||||
 | 
					            else {
 | 
				
			||||||
 | 
					                let toolMatches = [];
 | 
				
			||||||
 | 
					                for (let index = 0; index < parsed.rds.prodSpec.recipesAndPatterns.length; index++) {
 | 
				
			||||||
 | 
					                    if (parsed.rds.prodSpec.recipesAndPatterns[index].tool === tool) {
 | 
				
			||||||
 | 
					                        toolMatches.push(parsed.rds.prodSpec.recipesAndPatterns[index]);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                if (toolMatches == null || toolMatches.length === 0)
 | 
				
			||||||
 | 
					                    result = 'Tool [' + tool + '] not found in OI API results!';
 | 
				
			||||||
 | 
					                else {
 | 
				
			||||||
 | 
					                    let debug = '';
 | 
				
			||||||
 | 
					                    let matches = 0;
 | 
				
			||||||
 | 
					                    for (let index = 0; index < toolMatches.length; index++) {
 | 
				
			||||||
 | 
					                        debug += 'patternSize: ' + toolMatches[index].patternSize +
 | 
				
			||||||
 | 
					                            ';~recipe: ' + toolMatches[index].recipe +
 | 
				
			||||||
 | 
					                            ';~pattern: ' + toolMatches[index].pattern + ';~';
 | 
				
			||||||
 | 
					                        if (toolMatches[index].patternSize == patternSize &&
 | 
				
			||||||
 | 
					                            toolMatches[index].recipe.toLowerCase() == recipe.toLowerCase()) {
 | 
				
			||||||
 | 
					                            matches++;
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    if (matches > 0)
 | 
				
			||||||
 | 
					                        result = '1';
 | 
				
			||||||
 | 
					                    else
 | 
				
			||||||
 | 
					                        result = 'Value not matched~Run~patternSize: ' + patternSize + ';~recipe: ' + recipe + ';~pattern: ' + pattern + ';~API~' + debug;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					getValue('FTIR', 5, 'Thin8inch', 'pattern', '{"rds":{"prodSpec":{"recipesAndPatterns":[{"recipe":"thin8inch","pattern":"6INCH6MM","patternSize":5,"tool":"FTIR"}]}}}');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					let json;
 | 
				
			||||||
 | 
					let tool;
 | 
				
			||||||
 | 
					let recipe;
 | 
				
			||||||
 | 
					let pattern;
 | 
				
			||||||
 | 
					let patternSize;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					tool = 'FTIR'
 | 
				
			||||||
 | 
					patternSize = 5;
 | 
				
			||||||
 | 
					recipe = 'IRC6in_6mm';
 | 
				
			||||||
 | 
					pattern = 'pattern';
 | 
				
			||||||
 | 
					json = '{"rds":{"prodSpec":{"recipesAndPatterns":[{"recipe":"IRC6in_6mm","pattern":"6INCH6MM","patternSize":5,"tool":"FTIR"}]}}}';
 | 
				
			||||||
 | 
					const testA = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testA !== '1')
 | 
				
			||||||
 | 
					    throw 'Test A failed: ' + testA;
 | 
				
			||||||
 | 
					tool = null;
 | 
				
			||||||
 | 
					const testB = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testB !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test L failed: ' + testB;
 | 
				
			||||||
 | 
					tool = '';
 | 
				
			||||||
 | 
					const testC = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testC !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test M failed: ' + testC;
 | 
				
			||||||
 | 
					patternSize = null;
 | 
				
			||||||
 | 
					const testD = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testD !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test J failed: ' + testD;
 | 
				
			||||||
 | 
					patternSize = '';
 | 
				
			||||||
 | 
					const testE = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testE !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test K failed: ' + testE;
 | 
				
			||||||
 | 
					recipe = null;
 | 
				
			||||||
 | 
					const testF = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testF !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test F failed: ' + testF;
 | 
				
			||||||
 | 
					recipe = '';
 | 
				
			||||||
 | 
					const testG = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testG !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test G failed: ' + testG;
 | 
				
			||||||
 | 
					pattern = null;
 | 
				
			||||||
 | 
					const testH = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testH !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test H failed: ' + testH;
 | 
				
			||||||
 | 
					pattern = '';
 | 
				
			||||||
 | 
					const testI = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testI !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test I failed: ' + testI;
 | 
				
			||||||
 | 
					json = '';
 | 
				
			||||||
 | 
					const testK = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testK !== 'A) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test B failed: ' + testK;
 | 
				
			||||||
 | 
					json = 'invalid';
 | 
				
			||||||
 | 
					const testL = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testL !== 'B) Invalid input!')
 | 
				
			||||||
 | 
					    throw 'Test C failed: ' + testL;
 | 
				
			||||||
 | 
					json = '{"rds":{}}';
 | 
				
			||||||
 | 
					const testM = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testM !== 'C) No Spec!')
 | 
				
			||||||
 | 
					    throw 'Test D failed: ' + testM;
 | 
				
			||||||
 | 
					json = '{"rds":{"prodSpec":{"recipesAndPatterns":[]}}}';
 | 
				
			||||||
 | 
					const testN = getValue(tool, patternSize, recipe, pattern, json);
 | 
				
			||||||
 | 
					if (testN !== 'Tool [FTIR] not found in OI API results!')
 | 
				
			||||||
 | 
					    throw 'Test E failed: ' + testN;
 | 
				
			||||||
 | 
					const testO = getValue('FTIR', 14, 'Thin8inch', 'pattern', '{"rds":{"prodSpec":{"recipesAndPatterns":[{"recipe":"thin8inch","pattern":"6INCH6MM","patternSize":5,"tool":"FTIR"}]}}}');
 | 
				
			||||||
 | 
					if (testO.indexOf('Value not matched~Run~patternSize: 14; recipe: Thin8inch; pattern: pattern;~API~patternSize: 5; recipe: thin8inch; pattern: 6INCH6MM;~') !== 0)
 | 
				
			||||||
 | 
					    throw 'Test P failed: ' + testO;
 | 
				
			||||||
@ -37,7 +37,7 @@ public partial class FileRead : FileReaderHandler, ISMTP
 | 
				
			|||||||
    private FilePathGenerator _FilePathGeneratorForTarget;
 | 
					    private FilePathGenerator _FilePathGeneratorForTarget;
 | 
				
			||||||
    private readonly List<EquipmentParameter> _EquipmentParameters;
 | 
					    private readonly List<EquipmentParameter> _EquipmentParameters;
 | 
				
			||||||
    private static readonly Dictionary<string, List<long>> _DummyRuns;
 | 
					    private static readonly Dictionary<string, List<long>> _DummyRuns;
 | 
				
			||||||
    private static readonly Dictionary<long, List<string>> _StaticRuns;
 | 
					    private static readonly Dictionary<long, List<Adaptation.Shared.Metrology.WS.Results>> _StaticRuns;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    static FileRead()
 | 
					    static FileRead()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
@ -115,6 +115,14 @@
 | 
				
			|||||||
    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\FileRead.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\FileRead.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\WSRequest.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\WSRequest.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewerAttachments\FileRead.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewerAttachments\FileRead.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Body.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Constant.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\FileRead.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Footer.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Header.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Row.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Run.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\pdsf\Site.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Processed\FileRead.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Processed\FileRead.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\QS408M\Body.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\QS408M\Body.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\QS408M\Description.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\QS408M\Description.cs" />
 | 
				
			||||||
@ -160,6 +168,7 @@
 | 
				
			|||||||
    <Compile Include="Adaptation\Shared\Metrology\WS.Results.cs" />
 | 
					    <Compile Include="Adaptation\Shared\Metrology\WS.Results.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Shared\ParameterType.cs" />
 | 
					    <Compile Include="Adaptation\Shared\ParameterType.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Shared\ProcessDataStandardFormat.cs" />
 | 
					    <Compile Include="Adaptation\Shared\ProcessDataStandardFormat.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\Shared\ProcessDataStandardFormatMapping.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Shared\Properties\IDescription.cs" />
 | 
					    <Compile Include="Adaptation\Shared\Properties\IDescription.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Shared\Properties\IFileRead.cs" />
 | 
					    <Compile Include="Adaptation\Shared\Properties\IFileRead.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Shared\Properties\ILogistics.cs" />
 | 
					    <Compile Include="Adaptation\Shared\Properties\ILogistics.cs" />
 | 
				
			||||||
@ -175,7 +184,7 @@
 | 
				
			|||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <PackageReference Include="Infineon.EAF.Runtime">
 | 
					    <PackageReference Include="Infineon.EAF.Runtime">
 | 
				
			||||||
      <Version>2.58.0</Version>
 | 
					      <Version>2.61.1</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
    <PackageReference Include="System.Text.Json">
 | 
					    <PackageReference Include="System.Text.Json">
 | 
				
			||||||
      <Version>8.0.3</Version>
 | 
					      <Version>8.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.58.0.0")]
 | 
					[assembly: AssemblyVersion("2.61.1.0")]
 | 
				
			||||||
[assembly: AssemblyFileVersion("2.58.0.0")]
 | 
					[assembly: AssemblyFileVersion("2.61.1.0")]
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										24
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								README.md
									
									
									
									
									
								
							@ -1,20 +1,30 @@
 | 
				
			|||||||
# Introduction 
 | 
					# ReadMe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Introduction 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
MET08THFTIRQS408M EAF adaptation
 | 
					MET08THFTIRQS408M EAF adaptation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Getting Started
 | 
					## Getting Started
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.	Framework - MET08THFTIRQS408M.csproj
 | 
					1.	Framework - MET08THFTIRQS408M.csproj
 | 
				
			||||||
2.	dotnet core - Adaptation\MET08THFTIRQS408M.Tests.csproj
 | 
					2.	dotnet core - Adaptation\MET08THFTIRQS408M.Tests.csproj
 | 
				
			||||||
3.	https://tfs.intra.infineon.com/tfs/ManufacturingIT/_packaging/eaf/nuget/v3/index.json
 | 
					3.	https://tfs.intra.infineon.com/tfs/ManufacturingIT/_packaging/eaf/nuget/v3/index.json
 | 
				
			||||||
4.	https://packagemanagement.eu.infineon.com:4430/packages
 | 
					4.	https://packagemanagement.eu.infineon.com:4430/packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Build and Test
 | 
					## Build and Test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
See Adaptation\_Tests for dotnet core tests
 | 
					See Adaptation\_Tests for dotnet core tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# TFS
 | 
					## TFS
 | 
				
			||||||
$/MIT_EAF_Adaptations/Trunk/MET08THFTIRQS408M/06_SourceCode
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					$/MIT_EAF_Adaptations/Trunk/MET08THFTIRQS408M/06_SourceCode
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Last TFS Changeset
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Last TFS Changeset
 | 
					 | 
				
			||||||
303349	Phares Mike (IFAM IT FI MES)	2/1/2022 6:06:25 PM	MET08THFTIRQS408M - Move solution for Azure DevOps git
 | 
					303349	Phares Mike (IFAM IT FI MES)	2/1/2022 6:06:25 PM	MET08THFTIRQS408M - Move solution for Azure DevOps git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Git
 | 
					## Git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
git@tfs.intra.infineon.com:22/tfs/ManufacturingIT/Mesa_FI/_git/MET08THFTIRQS408M
 | 
					git@tfs.intra.infineon.com:22/tfs/ManufacturingIT/Mesa_FI/_git/MET08THFTIRQS408M
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user