Compare commits
	
		
			10 Commits
		
	
	
		
			55dbbc517c
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 48ad90c0f1 | |||
| 7739ff03a2 | |||
| 34ba8a4843 | |||
| ac3463dccd | |||
| 374e375c5e | |||
| 13bd899101 | |||
| 61188f434d | |||
| 4e8348ebc8 | |||
| c938da28c2 | |||
| 2453d448e7 | 
@ -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
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										37
									
								
								Adaptation/.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								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": 24012
 | 
					      "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 ../MET08THFTIRSTRATUS.csproj",
 | 
					            "command": "code ../MET08THFTIRSTRATUS.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/MET08THFTIRSTRATUS",
 | 
				
			||||||
 | 
					                "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
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
@ -24,7 +24,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private readonly HttpClient _HttpClient;
 | 
					    private readonly HttpClient _HttpClient;
 | 
				
			||||||
    private readonly string _StaticFileServer;
 | 
					    private readonly string _StaticFileServer;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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,89 +113,61 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private string GetLines(List<Stratus.Description> descriptions)
 | 
					    private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, List<Stratus.Description> descriptions, Test[] tests)
 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        StringBuilder results = new();
 | 
					 | 
				
			||||||
        char del = '\t';
 | 
					 | 
				
			||||||
        Stratus.Description x = descriptions[0];
 | 
					 | 
				
			||||||
        _ = results.Append("Stratus_").Append(_Logistics.MID).Append('_').Append(_Logistics.DateTimeFromSequence.ToString("yyyyMMddhhmmssfff")).Append(del).
 | 
					 | 
				
			||||||
            Append(x.Date).Append(del).
 | 
					 | 
				
			||||||
            Append(_Logistics.JobID).Append(del).
 | 
					 | 
				
			||||||
            Append("FQA Thickness").Append(del).
 | 
					 | 
				
			||||||
            Append(x.Employee).Append(del).
 | 
					 | 
				
			||||||
            Append(x.Recipe).Append(del).
 | 
					 | 
				
			||||||
            Append(x.Reactor).Append(del).
 | 
					 | 
				
			||||||
            Append(x.RDS).Append(del).
 | 
					 | 
				
			||||||
            Append(x.PSN).Append(del).
 | 
					 | 
				
			||||||
            Append(x.Lot).Append(del).
 | 
					 | 
				
			||||||
            Append(x.Cassette).Append(del).
 | 
					 | 
				
			||||||
            Append(x.MeanThickness);
 | 
					 | 
				
			||||||
        for (int i = 0; i < descriptions.Count; i++)
 | 
					 | 
				
			||||||
            _ = results.Append(del).Append(descriptions[i].Slot).
 | 
					 | 
				
			||||||
                        Append(del).Append(descriptions[i].Mean);
 | 
					 | 
				
			||||||
        return results.ToString();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, string logistics, List<Stratus.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);
 | 
				
			||||||
        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);
 | 
					 | 
				
			||||||
            duplicateDirectory = Path.Combine(parentParent, "Data");
 | 
					 | 
				
			||||||
            if (!Directory.Exists(duplicateDirectory))
 | 
					 | 
				
			||||||
                _ = Directory.CreateDirectory(duplicateDirectory);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
 | 
					 | 
				
			||||||
        if (descriptions.Count != 0 && tests.Length != 0)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            string lines = GetLines(descriptions);
 | 
					 | 
				
			||||||
            if (!string.IsNullOrEmpty(lines))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                long? subGroupId;
 | 
					 | 
				
			||||||
            long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
 | 
					            long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
 | 
				
			||||||
            long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
 | 
					            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))
 | 
					            if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN))
 | 
				
			||||||
                    subGroupId = null;
 | 
					                subgroupId = null;
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                    (subGroupId, int? _, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
 | 
					                (subgroupId, int? _, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
 | 
				
			||||||
                if (subGroupId is null)
 | 
					            if (_StaticRuns.TryGetValue(_Logistics.Sequence, out List<WS.Results> wsResults))
 | 
				
			||||||
                    collection.Add(new(new ScopeInfo(tests[0], _OpenInsightFilePattern), lines));
 | 
					 | 
				
			||||||
                else
 | 
					 | 
				
			||||||
                    collection.Add(new(new ScopeInfo(tests[0], $"{subGroupId.Value} {_OpenInsightFilePattern}"), lines));
 | 
					 | 
				
			||||||
                if (_StaticRuns.TryGetValue(_Logistics.Sequence, out List<string> values))
 | 
					 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                    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}!");
 | 
				
			||||||
                    values[0] = $"{values[0]}|{subGroupId}";
 | 
					                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");
 | 
					            string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00");
 | 
				
			||||||
                FromIQS.Save(_OpenInsightApiECDirectory, _Logistics, reportFullPath, logistics, descriptions.First(), lines, subGroupId, weekOfYear);
 | 
					            FromIQS.Save(_OpenInsightApiECDirectory, _Logistics, reportFullPath, descriptions.First(), subgroupId, weekOfYear);
 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
					        if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            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<Stratus.Description> descriptions = Stratus.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<Stratus.Description> descriptions = Stratus.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, Stratus.Description description)
 | 
					    internal static void Save(string openInsightApiECDirectory, Logistics logistics, string reportFullPath, Stratus.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, Stratus.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<Stratus.Description> descriptions)
 | 
					    private void SendData(string reportFullPath, DateTime dateTime, JsonElement[] jsonElements, List<Stratus.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<Stratus.Description> descriptions = Stratus.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<Stratus.Description> descriptions = Stratus.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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,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<Stratus.Description> descriptions, string processDataStandardFormat = null)
 | 
					    internal WSRequest(IFileRead fileRead, Logistics logistics, JsonElement[] jsonElements, List<Stratus.Description> descriptions, string processDataStandardFormat = null)
 | 
				
			||||||
#pragma warning restore IDE0060
 | 
					#pragma warning restore IDE0060
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Id = -1;
 | 
					        Id = -1;
 | 
				
			||||||
@ -43,16 +43,16 @@ public class WSRequest
 | 
				
			|||||||
        Details = new List<Stratus.Detail>();
 | 
					        Details = new List<Stratus.Detail>();
 | 
				
			||||||
        //Header
 | 
					        //Header
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Batch = x.Lot;
 | 
					            Batch = x.Lot; // different name
 | 
				
			||||||
            Cassette = x.Cassette;
 | 
					            Cassette = x.Cassette;
 | 
				
			||||||
            Date = x.Date;
 | 
					            Date = x.Date;
 | 
				
			||||||
            MeanThickness = x.MeanThickness;
 | 
					            MeanThickness = x.MeanThickness;
 | 
				
			||||||
            Operator = x.Employee;
 | 
					            Operator = x.Employee; // different name
 | 
				
			||||||
            PSN = x.PSN;
 | 
					            PSN = x.PSN;
 | 
				
			||||||
            RDS = x.RDS;
 | 
					            RDS = x.RDS;
 | 
				
			||||||
            Reactor = x.Reactor;
 | 
					            Reactor = x.Reactor;
 | 
				
			||||||
            Recipe = x.Recipe;
 | 
					            Recipe = x.Recipe;
 | 
				
			||||||
            StdDev = x.GradeStdDev;
 | 
					            StdDev = x.GradeStdDev; // different name
 | 
				
			||||||
            Title = x.Title;
 | 
					            Title = x.Title;
 | 
				
			||||||
            UniqueId = x.UniqueId;
 | 
					            UniqueId = x.UniqueId;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -65,7 +65,6 @@ public class WSRequest
 | 
				
			|||||||
                HeaderUniqueId = description.HeaderUniqueId,
 | 
					                HeaderUniqueId = description.HeaderUniqueId,
 | 
				
			||||||
                Mean = description.Mean,
 | 
					                Mean = description.Mean,
 | 
				
			||||||
                PassFail = description.PassFail,
 | 
					                PassFail = description.PassFail,
 | 
				
			||||||
                Position = description.Position,
 | 
					 | 
				
			||||||
                Recipe = description.Recipe,
 | 
					                Recipe = description.Recipe,
 | 
				
			||||||
                Slot = description.Slot,
 | 
					                Slot = description.Slot,
 | 
				
			||||||
                StdDev = description.StdDev,
 | 
					                StdDev = description.StdDev,
 | 
				
			||||||
@ -74,7 +73,7 @@ public class WSRequest
 | 
				
			|||||||
                Wafer = description.Wafer,
 | 
					                Wafer = description.Wafer,
 | 
				
			||||||
                Points = new()
 | 
					                Points = new()
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            segments = description.Position.Split(',');
 | 
					            segments = description.Slot.Split(',');
 | 
				
			||||||
            foreach (string segment in segments)
 | 
					            foreach (string segment in segments)
 | 
				
			||||||
                detail.Points.Add(new Stratus.Point { HeaderUniqueId = description.HeaderUniqueId, UniqueId = description.UniqueId, Position = segment });
 | 
					                detail.Points.Add(new Stratus.Point { HeaderUniqueId = description.HeaderUniqueId, UniqueId = description.UniqueId, Position = segment });
 | 
				
			||||||
            segments = description.Thickness.Split(',');
 | 
					            segments = description.Thickness.Split(',');
 | 
				
			||||||
@ -85,34 +84,39 @@ 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<Stratus.Description> descriptions)
 | 
					    internal static long GetHeaderId(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, string openInsightMetrologyViewerFileShare, int weekOfYear, WS.Results results, JsonElement[] jsonElements, List<Stratus.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, string originalDataBioRad, List<Stratus.Description> descriptions, string matchDirectory, string subGroupId, long headerId, string headerIdDirectory)
 | 
					    internal static void PostOpenInsightMetrologyViewerAttachments(IFileRead fileRead, Logistics logistics, string openInsightMetrologyViewerAPI, string originalDataBioRad, List<Stratus.Description> descriptions, string matchDirectory, WS.Results results, string headerIdDirectory)
 | 
				
			||||||
#pragma warning restore IDE0060
 | 
					#pragma warning restore IDE0060
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        string dataPDFFile = Path.Combine(matchDirectory, $"{headerId}.pdf");
 | 
					        string dataPDFFile = Path.Combine(matchDirectory, $"{results.HeaderId}.pdf");
 | 
				
			||||||
        string[] txtFiles = Directory.GetFiles(matchDirectory, string.Concat(originalDataBioRad, "*.txt"), SearchOption.TopDirectoryOnly);
 | 
					        string[] txtFiles = Directory.GetFiles(matchDirectory, string.Concat(originalDataBioRad, "*.txt"), SearchOption.TopDirectoryOnly);
 | 
				
			||||||
        if (txtFiles.Length != 1)
 | 
					        if (txtFiles.Length != 1)
 | 
				
			||||||
            throw new Exception($"Invalid source file count for <{headerId}>!");
 | 
					            throw new Exception($"Invalid source file count for <{results.HeaderId}>!");
 | 
				
			||||||
        string[] lines = File.ReadAllLines(txtFiles[0]);
 | 
					        string[] lines = File.ReadAllLines(txtFiles[0]);
 | 
				
			||||||
        lines = (from l in lines where !string.IsNullOrEmpty(l) select l).ToArray();
 | 
					        lines = (from l in lines where !string.IsNullOrEmpty(l) select l).ToArray();
 | 
				
			||||||
        if (lines.Length > 1)
 | 
					        if (lines.Length > 1)
 | 
				
			||||||
@ -135,7 +139,7 @@ public class WSRequest
 | 
				
			|||||||
            pdDocument.close();
 | 
					            pdDocument.close();
 | 
				
			||||||
            List<WS.Attachment> headerAttachments = new()
 | 
					            List<WS.Attachment> headerAttachments = new()
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                new WS.Attachment(subGroupId, headerId, headerIdDirectory, descriptions[0].HeaderUniqueId, "Data.pdf", dataPDFFile)
 | 
					                new WS.Attachment(results, headerIdDirectory, $"{logistics.JobID}_{logistics.MID}_{logistics.DateTimeFromSequence:yyyyMMddHHmmssffff}", "Data.pdf", dataPDFFile)
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            WS.AttachFiles(openInsightMetrologyViewerAPI, headerAttachments, dataAttachments: null);
 | 
					            WS.AttachFiles(openInsightMetrologyViewerAPI, headerAttachments, dataAttachments: null);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
@ -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<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;
 | 
				
			||||||
@ -137,32 +137,27 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void PostOpenInsightMetrologyViewerAttachments(List<Stratus.Description> descriptions)
 | 
					    private void PostOpenInsightMetrologyViewerAttachments(JsonElement[] jsonElements, List<Stratus.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, _OriginalDataBioRad, descriptions, matchDirectories[0], subGroupId, headerId, headerIdDirectory);
 | 
					        OpenInsightMetrologyViewer.WSRequest.PostOpenInsightMetrologyViewerAttachments(this, _Logistics, _OpenInsightMetrologyViewerAPI, _OriginalDataBioRad, 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)
 | 
				
			||||||
@ -170,15 +165,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<Stratus.Description> descriptions = Stratus.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<Stratus.Description> descriptions = Stratus.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<Stratus.Description> descriptions)
 | 
					    private void DirectoryMove(string reportFullPath, DateTime dateTime, JsonElement[] jsonElements, List<Stratus.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<Stratus.Description> descriptions = Stratus.ProcessData.GetDescriptions(jsonElements);
 | 
					        List<Stratus.Description> descriptions = Stratus.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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -13,10 +13,14 @@ internal class Constant
 | 
				
			|||||||
    public string Source { get; } = "Source:";
 | 
					    public string Source { get; } = "Source:";
 | 
				
			||||||
    public string Started { get; } = "started";
 | 
					    public string Started { get; } = "started";
 | 
				
			||||||
    public string Cassette { get; } = "Cassette";
 | 
					    public string Cassette { get; } = "Cassette";
 | 
				
			||||||
 | 
					    public string Finished { get; } = "finished.";
 | 
				
			||||||
    public string Reference { get; } = "Reference";
 | 
					    public string Reference { get; } = "Reference";
 | 
				
			||||||
    public string StartedAt { get; } = "started at";
 | 
					    public string StartedAt { get; } = "started at";
 | 
				
			||||||
    public string Thickness { get; } = "Thickness,";
 | 
					    public string Thickness { get; } = "Thickness,";
 | 
				
			||||||
    public string Destination { get; } = "Destination:";
 | 
					    public string Destination { get; } = "Destination:";
 | 
				
			||||||
    public string ProcessFailed  { get; } = "------------- Process failed -------------";
 | 
					    public string IsPut { get; } = "is put to the slot";
 | 
				
			||||||
 | 
					    public string WaferParentheses { get; } = "Wafer (";
 | 
				
			||||||
 | 
					    public string IsTaken { get; } = "is taken from the slot";
 | 
				
			||||||
 | 
					    public string ProcessFailed { get; } = "- Process failed -";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -4,49 +4,54 @@ 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.Stratus;
 | 
					namespace Adaptation.FileHandlers.Stratus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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; } // [JsonPropertyName("Cassette")]
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Date { get; set; }
 | 
					    [JsonPropertyName("DateTime")] public string Date { get; set; }
 | 
				
			||||||
    public string Employee { get; set; }
 | 
					    [JsonPropertyName("Employee")] public string Employee { get; set; }
 | 
				
			||||||
    public string Lot { get; set; }
 | 
					    [JsonPropertyName("Batch")] 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; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Cassette { get; set; }
 | 
					    [JsonPropertyName("Cassette")] public string Cassette { get; set; }
 | 
				
			||||||
    public string GradeStdDev { get; set; }
 | 
					    [JsonPropertyName("GradeStdDev")] public string GradeStdDev { 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 MeanThickness { get; set; }
 | 
					    [JsonPropertyName("GradeMean")] public string MeanThickness { get; set; }
 | 
				
			||||||
    public string PassFail { get; set; }
 | 
					    [JsonPropertyName("PassFail")] public string PassFail { get; set; }
 | 
				
			||||||
    public string RDS { get; set; }
 | 
					    [JsonPropertyName("RDS")] public string RDS { get; set; }
 | 
				
			||||||
    public string Slot { get; set; }
 | 
					    [JsonPropertyName("Slot")] public string Slot { get; set; }
 | 
				
			||||||
    public string Title { get; set; }
 | 
					    public string Title { get; set; } // [JsonPropertyName("Batch")]
 | 
				
			||||||
    public string UniqueId { get; set; }
 | 
					    public string UniqueId { get; set; }
 | 
				
			||||||
    public string Wafer { get; set; }
 | 
					    [JsonPropertyName("Text")] public string Wafer { get; set; }
 | 
				
			||||||
    public string Zone { get; set; }
 | 
					    [JsonPropertyName("Zone")] public string Zone { get; set; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string Mean { get; set; }
 | 
					    [JsonPropertyName("Mean")] public string Mean { get; set; }
 | 
				
			||||||
    public string Position { get; set; }
 | 
					    [JsonPropertyName("StdDev")] public string StdDev { get; set; }
 | 
				
			||||||
    public string StdDev { get; set; }
 | 
					    [JsonPropertyName("Site")] public string Thickness { get; set; }
 | 
				
			||||||
    public string Thickness { get; set; }
 | 
					    //
 | 
				
			||||||
 | 
					    [JsonPropertyName("ThicknessSlotOne")] public string ThicknessSlotOne { get; set; }
 | 
				
			||||||
 | 
					    [JsonPropertyName("ThicknessSlotTwentyFive")] public string ThicknessSlotTwentyFive { get; set; }
 | 
				
			||||||
 | 
					    [JsonPropertyName("Actual Delta Thick Pts 1 and 25")] public string DeltaThicknessSlotsOneAndTwentyFive { get; set; }
 | 
				
			||||||
 | 
					    [JsonPropertyName("% Delta Thick Pts 1 and 25")] public string PercentDeltaThicknessSlotsOneAndTwentyFive { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string IDescription.GetEventDescription() => "File Has been read and parsed";
 | 
					    string IDescription.GetEventDescription() => "File Has been read and parsed";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -108,7 +113,7 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
        List<string> results = new()
 | 
					        List<string> results = new()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            nameof(Mean),
 | 
					            nameof(Mean),
 | 
				
			||||||
            nameof(Position),
 | 
					            nameof(Slot),
 | 
				
			||||||
            nameof(StdDev),
 | 
					            nameof(StdDev),
 | 
				
			||||||
            nameof(Thickness)
 | 
					            nameof(Thickness)
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
@ -213,9 +218,14 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
                    Zone = processData.Zone,
 | 
					                    Zone = processData.Zone,
 | 
				
			||||||
                    //
 | 
					                    //
 | 
				
			||||||
                    Mean = detail.Mean,
 | 
					                    Mean = detail.Mean,
 | 
				
			||||||
                    Position = detail.Position,
 | 
					 | 
				
			||||||
                    StdDev = detail.StdDev,
 | 
					                    StdDev = detail.StdDev,
 | 
				
			||||||
                    Thickness = detail.Thickness
 | 
					                    Thickness = detail.Thickness,
 | 
				
			||||||
 | 
					                    //
 | 
				
			||||||
 | 
					                    ThicknessSlotOne = processData.ThicknessSlotOne,
 | 
				
			||||||
 | 
					                    ThicknessSlotTwentyFive = processData.ThicknessSlotTwentyFive,
 | 
				
			||||||
 | 
					                    //
 | 
				
			||||||
 | 
					                    DeltaThicknessSlotsOneAndTwentyFive = processData.DeltaThicknessSlotsOneAndTwentyFive,
 | 
				
			||||||
 | 
					                    PercentDeltaThicknessSlotsOneAndTwentyFive = processData.PercentDeltaThicknessSlotsOneAndTwentyFive,
 | 
				
			||||||
                };
 | 
					                };
 | 
				
			||||||
                results.Add(description);
 | 
					                results.Add(description);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -267,9 +277,13 @@ public class Description : IDescription, Shared.Properties.IDescription
 | 
				
			|||||||
            Zone = nameof(Zone),
 | 
					            Zone = nameof(Zone),
 | 
				
			||||||
            //
 | 
					            //
 | 
				
			||||||
            Mean = nameof(Mean),
 | 
					            Mean = nameof(Mean),
 | 
				
			||||||
            Position = nameof(Position),
 | 
					 | 
				
			||||||
            StdDev = nameof(StdDev),
 | 
					            StdDev = nameof(StdDev),
 | 
				
			||||||
            Thickness = nameof(Thickness)
 | 
					            Thickness = nameof(Thickness),
 | 
				
			||||||
 | 
					            //
 | 
				
			||||||
 | 
					            ThicknessSlotOne = nameof(ThicknessSlotOne),
 | 
				
			||||||
 | 
					            ThicknessSlotTwentyFive = nameof(ThicknessSlotTwentyFive),
 | 
				
			||||||
 | 
					            DeltaThicknessSlotsOneAndTwentyFive = nameof(DeltaThicknessSlotsOneAndTwentyFive),
 | 
				
			||||||
 | 
					            PercentDeltaThicknessSlotsOneAndTwentyFive = nameof(PercentDeltaThicknessSlotsOneAndTwentyFive),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -277,3 +291,15 @@ 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,4 +1,5 @@
 | 
				
			|||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.FileHandlers.Stratus;
 | 
					namespace Adaptation.FileHandlers.Stratus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -6,15 +7,26 @@ public class Detail
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public string HeaderUniqueId { get; set; }
 | 
					    public string HeaderUniqueId { get; set; }
 | 
				
			||||||
    public string Mean { get; set; }
 | 
					    [JsonPropertyName("Mean")] public string Mean { get; set; }
 | 
				
			||||||
    public string PassFail { get; set; }
 | 
					    [JsonPropertyName("PassFail")] public string PassFail { get; set; }
 | 
				
			||||||
    public string Position { get; set; }
 | 
					    [JsonPropertyName("Recipe")] public string Recipe { get; set; }
 | 
				
			||||||
    public string Recipe { get; set; }
 | 
					    [JsonPropertyName("Slot")] public string Slot { get; set; }
 | 
				
			||||||
    public string Slot { get; set; }
 | 
					    [JsonPropertyName("StdDev")] public string StdDev { get; set; }
 | 
				
			||||||
    public string StdDev { get; set; }
 | 
					 | 
				
			||||||
    public string UniqueId { get; set; }
 | 
					    public string UniqueId { get; set; }
 | 
				
			||||||
    public string Thickness { get; set; }
 | 
					    [JsonPropertyName("Site")] public string Thickness { get; set; } // different name
 | 
				
			||||||
    public string Wafer { get; set; }
 | 
					    [JsonPropertyName("Text")] public string Wafer { get; set; } // different name
 | 
				
			||||||
    public List<Point> Points { get; set; }
 | 
					    public List<Point> Points { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[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
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -16,7 +16,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private long? _TickOffset;
 | 
					    private long? _TickOffset;
 | 
				
			||||||
    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;
 | 
				
			||||||
@ -110,7 +110,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            results.Item4.Add(_Logistics.FileInfo);
 | 
					            results.Item4.Add(_Logistics.FileInfo);
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Run? run = Run.Get(_Logistics, results.Item4);
 | 
					            Run? run = Run.Get(_Logistics);
 | 
				
			||||||
            if (run is null)
 | 
					            if (run is null)
 | 
				
			||||||
                throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks));
 | 
					                throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks));
 | 
				
			||||||
            IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _OriginalDataBioRad, run, dataText: string.Empty);
 | 
					            IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _OriginalDataBioRad, run, dataText: string.Empty);
 | 
				
			||||||
 | 
				
			|||||||
@ -4,10 +4,10 @@ namespace Adaptation.FileHandlers.Stratus;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#nullable enable
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Footer
 | 
					public class Grade
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Footer(string meanThickness, string stdDev)
 | 
					    public Grade(string meanThickness, string stdDev)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        MeanThickness = meanThickness;
 | 
					        MeanThickness = meanThickness;
 | 
				
			||||||
        StdDev = stdDev;
 | 
					        StdDev = stdDev;
 | 
				
			||||||
@ -16,28 +16,31 @@ public class Footer
 | 
				
			|||||||
    public string MeanThickness { get; }
 | 
					    public string MeanThickness { get; }
 | 
				
			||||||
    public string StdDev { get; }
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    internal static Footer? Get(Constant constant, ReadOnlyCollection<string> groups)
 | 
					    internal static Grade? Get(Constant constant, ReadOnlyCollection<string> groups)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Footer? result;
 | 
					        Grade? result;
 | 
				
			||||||
 | 
					        string? mean = null;
 | 
				
			||||||
 | 
					        string? stdDev = null;
 | 
				
			||||||
        int[] j = new int[] { 0 };
 | 
					        int[] j = new int[] { 0 };
 | 
				
			||||||
        string stdDev = string.Empty;
 | 
					 | 
				
			||||||
        string meanThickness = string.Empty;
 | 
					 | 
				
			||||||
        foreach (string groupText in groups)
 | 
					        foreach (string groupText in groups)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (groupText.Contains(constant.Destination))
 | 
					            if (!groupText.Contains(constant.Finished))
 | 
				
			||||||
                continue;
 | 
					                continue;
 | 
				
			||||||
 | 
					            mean = string.Empty;
 | 
				
			||||||
            stdDev = string.Empty;
 | 
					            stdDev = string.Empty;
 | 
				
			||||||
            meanThickness = string.Empty;
 | 
					 | 
				
			||||||
            Header.ScanPast(groupText, j, constant.Mean);
 | 
					            Header.ScanPast(groupText, j, constant.Mean);
 | 
				
			||||||
            meanThickness = Wafer.GetToken(groupText, j);
 | 
					            mean = Wafer.GetToken(groupText, j);
 | 
				
			||||||
            if (meanThickness.EndsWith(","))
 | 
					            if (mean.EndsWith(","))
 | 
				
			||||||
                meanThickness = meanThickness.Remove(meanThickness.Length - 1, 1);
 | 
					                mean = mean.Remove(mean.Length - 1, 1);
 | 
				
			||||||
            Header.ScanPast(groupText, j, constant.STDD);
 | 
					            Header.ScanPast(groupText, j, constant.STDD);
 | 
				
			||||||
            stdDev = Wafer.GetToken(groupText, j);
 | 
					            stdDev = Wafer.GetToken(groupText, j);
 | 
				
			||||||
            if (stdDev.EndsWith(","))
 | 
					            if (stdDev.EndsWith(","))
 | 
				
			||||||
                stdDev = stdDev.Remove(stdDev.Length - 1, 1);
 | 
					                stdDev = stdDev.Remove(stdDev.Length - 1, 1);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        result = new(meanThickness: meanThickness,
 | 
					        if (mean is null || stdDev is null)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = new(meanThickness: mean,
 | 
				
			||||||
                         stdDev: stdDev);
 | 
					                         stdDev: stdDev);
 | 
				
			||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -35,6 +35,11 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
    public string Title { get; set; }
 | 
					    public string Title { get; set; }
 | 
				
			||||||
    public string UniqueId { get; set; }
 | 
					    public string UniqueId { get; set; }
 | 
				
			||||||
    public string Zone { get; set; }
 | 
					    public string Zone { get; set; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string ThicknessSlotOne { get; set; }
 | 
				
			||||||
 | 
					    public string ThicknessSlotTwentyFive { get; set; }
 | 
				
			||||||
 | 
					    public string DeltaThicknessSlotsOneAndTwentyFive { get; set; }
 | 
				
			||||||
 | 
					    public string PercentDeltaThicknessSlotsOneAndTwentyFive { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
					    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -73,8 +78,12 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
            if (description.Test != (int)tests[i])
 | 
					            if (description.Test != (int)tests[i])
 | 
				
			||||||
                throw new Exception();
 | 
					                throw new Exception();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        FileInfo fileInfo = new($"{logistics.ReportFullPath}.descriptions.json");
 | 
				
			||||||
        List<Description> fileReadDescriptions = (from l in descriptions select (Description)l).ToList();
 | 
					        List<Description> fileReadDescriptions = (from l in descriptions select (Description)l).ToList();
 | 
				
			||||||
        string json = JsonSerializer.Serialize(fileReadDescriptions, fileReadDescriptions.GetType());
 | 
					        string json = JsonSerializer.Serialize(fileReadDescriptions, fileReadDescriptions.GetType());
 | 
				
			||||||
 | 
					        File.WriteAllText(fileInfo.FullName, json);
 | 
				
			||||||
 | 
					        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
				
			||||||
 | 
					        fileInfoCollection.Add(fileInfo);
 | 
				
			||||||
        JsonElement[] jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json) ?? throw new Exception();
 | 
					        JsonElement[] jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json) ?? throw new Exception();
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(logistics.Logistics1[0], tests.ToArray(), jsonElements, fileInfoCollection);
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(logistics.Logistics1[0], tests.ToArray(), jsonElements, fileInfoCollection);
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
@ -568,7 +577,7 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
                            _Log.Debug("****ProcessData Removing stdDev");
 | 
					                            _Log.Debug("****ProcessData Removing stdDev");
 | 
				
			||||||
                            detail.StdDev = detail.StdDev.Remove(detail.StdDev.Length - 1, 1);
 | 
					                            detail.StdDev = detail.StdDev.Remove(detail.StdDev.Length - 1, 1);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        detail.UniqueId = string.Concat("_Wafer-", detail.Wafer, "_Slot-", detail.Slot, "_Point-", detail.Position);
 | 
					                        detail.UniqueId = string.Concat("_Wafer-", detail.Wafer, "_Slot-", detail.Slot);
 | 
				
			||||||
                        details.Add(detail);
 | 
					                        details.Add(detail);
 | 
				
			||||||
                        nextLine = PeekNextLine();
 | 
					                        nextLine = PeekNextLine();
 | 
				
			||||||
                        if (nextLine.Contains(cassette))
 | 
					                        if (nextLine.Contains(cassette))
 | 
				
			||||||
@ -621,28 +630,42 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
                _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
					                _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
				
			||||||
            detail.Thickness = stringBuilder.ToString();
 | 
					            detail.Thickness = stringBuilder.ToString();
 | 
				
			||||||
            _ = stringBuilder.Clear();
 | 
					            _ = stringBuilder.Clear();
 | 
				
			||||||
            foreach (Point point in detail.Points)
 | 
					        }
 | 
				
			||||||
                _ = stringBuilder.Append(point.Position).Append(',');
 | 
					        if (details.Count != 2
 | 
				
			||||||
            if (stringBuilder.Length > 0)
 | 
					            || details[0].Slot != "1"
 | 
				
			||||||
                _ = stringBuilder.Remove(stringBuilder.Length - 1, 1);
 | 
					            || details[1].Slot != "25"
 | 
				
			||||||
            detail.Position = stringBuilder.ToString();
 | 
					            || string.IsNullOrEmpty(details[0].Thickness)
 | 
				
			||||||
 | 
					            || string.IsNullOrEmpty(details[1].Thickness)
 | 
				
			||||||
 | 
					            || !decimal.TryParse(details[0].Thickness, out decimal thick01)
 | 
				
			||||||
 | 
					            || !decimal.TryParse(details[1].Thickness, out decimal thick25)
 | 
				
			||||||
 | 
					            || (thick01 == 0 && thick25 == 0))
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            ThicknessSlotOne = string.Empty;
 | 
				
			||||||
 | 
					            ThicknessSlotTwentyFive = string.Empty;
 | 
				
			||||||
 | 
					            DeltaThicknessSlotsOneAndTwentyFive = string.Empty;
 | 
				
			||||||
 | 
					            PercentDeltaThicknessSlotsOneAndTwentyFive = string.Empty;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            ThicknessSlotOne = details[0].Thickness;
 | 
				
			||||||
 | 
					            ThicknessSlotTwentyFive = details[1].Thickness;
 | 
				
			||||||
 | 
					            DeltaThicknessSlotsOneAndTwentyFive = (thick01 - thick25).ToString();
 | 
				
			||||||
 | 
					            // https://www.calculatorsoup.com/calculators/algebra/percent-difference-calculator.php
 | 
				
			||||||
 | 
					            PercentDeltaThicknessSlotsOneAndTwentyFive = $"{Math.Abs(thick01 - thick25) / ((thick01 + thick25) / 2) * 100:0.000}";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        fileInfoCollection.Add(logistics.FileInfo);
 | 
					        fileInfoCollection.Add(logistics.FileInfo);
 | 
				
			||||||
        _Details.AddRange(details);
 | 
					        _Details.AddRange(details);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#nullable enable
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    internal static List<Description> GetDescriptions(JsonElement[] jsonElements)
 | 
					    internal static List<Description> GetDescriptions(JsonElement[] jsonElements)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        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);
 | 
				
			||||||
 | 
				
			|||||||
@ -7,8 +7,10 @@ namespace Adaptation.FileHandlers.Stratus;
 | 
				
			|||||||
internal class Row
 | 
					internal class Row
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Row(Run run, int i, int j)
 | 
					    public Row(Run run, int index, int i, int j)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        Index = index;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
        Batch = run.Header.Batch;
 | 
					        Batch = run.Header.Batch;
 | 
				
			||||||
        Cassette = run.Header.Cassette;
 | 
					        Cassette = run.Header.Cassette;
 | 
				
			||||||
        DateTime = run.Header.DateTime;
 | 
					        DateTime = run.Header.DateTime;
 | 
				
			||||||
@ -21,13 +23,15 @@ internal class Row
 | 
				
			|||||||
        Site = run.Wafers[i].Sites[j];
 | 
					        Site = run.Wafers[i].Sites[j];
 | 
				
			||||||
        Slot = run.Wafers[i].Slot;
 | 
					        Slot = run.Wafers[i].Slot;
 | 
				
			||||||
        Source = run.Wafers[i].Source;
 | 
					        Source = run.Wafers[i].Source;
 | 
				
			||||||
        WaferStdDev = run.Wafers[i].StdDev;
 | 
					        StdDev = run.Wafers[i].StdDev;
 | 
				
			||||||
        Text = run.Wafers[i].Text;
 | 
					        Text = run.Wafers[i].Text;
 | 
				
			||||||
        //
 | 
					        //
 | 
				
			||||||
        MeanThickness = run.Footer.MeanThickness;
 | 
					        GradeMean = run.Grade.MeanThickness;
 | 
				
			||||||
        StdDev = run.Footer.StdDev;    
 | 
					        GradeStdDev = run.Grade.StdDev;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int Index { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
    public string Batch { get; }
 | 
					    public string Batch { get; }
 | 
				
			||||||
    public string Cassette { get; }
 | 
					    public string Cassette { get; }
 | 
				
			||||||
    public string DateTime { get; }
 | 
					    public string DateTime { get; }
 | 
				
			||||||
@ -40,16 +44,16 @@ internal class Row
 | 
				
			|||||||
    public string Site { get; }
 | 
					    public string Site { get; }
 | 
				
			||||||
    public string Slot { get; }
 | 
					    public string Slot { get; }
 | 
				
			||||||
    public string Source { get; }
 | 
					    public string Source { get; }
 | 
				
			||||||
    public string WaferStdDev { get; }
 | 
					    public string StdDev { get; }
 | 
				
			||||||
    public string Text { get; }
 | 
					    public string Text { get; }
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    public string MeanThickness { get; }
 | 
					    public string GradeMean { get; }
 | 
				
			||||||
    public string StdDev { get; }
 | 
					    public string GradeStdDev { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
[JsonSerializable(typeof(Row))]
 | 
					[JsonSerializable(typeof(Row))]
 | 
				
			||||||
internal partial class RowSourceGenerationContext : JsonSerializerContext
 | 
					internal partial class StratusRowSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -1,10 +1,6 @@
 | 
				
			|||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using System;
 | 
					 | 
				
			||||||
using System.Collections.Generic;
 | 
					 | 
				
			||||||
using System.Collections.ObjectModel;
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
using System.IO;
 | 
					using System.IO;
 | 
				
			||||||
using System.Text;
 | 
					 | 
				
			||||||
using System.Text.Json;
 | 
					 | 
				
			||||||
using System.Text.Json.Serialization;
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation.FileHandlers.Stratus;
 | 
					namespace Adaptation.FileHandlers.Stratus;
 | 
				
			||||||
@ -14,86 +10,18 @@ namespace Adaptation.FileHandlers.Stratus;
 | 
				
			|||||||
internal class Run
 | 
					internal class Run
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Run(Header header, ReadOnlyCollection<Wafer> wafers, Footer footer)
 | 
					    public Run(Header header, ReadOnlyCollection<Wafer> wafers, Grade grade)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Header = header;
 | 
					        Header = header;
 | 
				
			||||||
        Wafers = wafers;
 | 
					        Wafers = wafers;
 | 
				
			||||||
        Footer = footer;
 | 
					        Grade = grade;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Header Header { get; }
 | 
					    public Header Header { get; }
 | 
				
			||||||
    public ReadOnlyCollection<Wafer> Wafers { get; }
 | 
					    public ReadOnlyCollection<Wafer> Wafers { get; }
 | 
				
			||||||
    public Footer Footer { get; }
 | 
					    public Grade Grade { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static void WriteJson(Logistics logistics, List<FileInfo> fileInfoCollection, Run? result)
 | 
					    internal static Run? Get(Logistics logistics)
 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        FileInfo fileInfo = new($"{logistics.ReportFullPath}.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.Wafers.Count; i++)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            for (int j = 0; j < run.Wafers[i].Sites.Count; j++)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                row = new(run, i, j);
 | 
					 | 
				
			||||||
                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));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    internal static Run? Get(Logistics logistics, List<FileInfo> fileInfoCollection)
 | 
					 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Run? result;
 | 
					        Run? result;
 | 
				
			||||||
        Constant constant = new();
 | 
					        Constant constant = new();
 | 
				
			||||||
@ -114,15 +42,13 @@ internal class Run
 | 
				
			|||||||
                    result = null;
 | 
					                    result = null;
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    Footer? footer = Footer.Get(constant, groups);
 | 
					                    Grade? grade = Grade.Get(constant, groups);
 | 
				
			||||||
                    if (footer is null)
 | 
					                    if (grade is null)
 | 
				
			||||||
                        result = null;
 | 
					                        result = null;
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                    {
 | 
					                        result = new(header, wafers, grade);
 | 
				
			||||||
                        result = new(header, wafers, footer);
 | 
					                    // WriteJson(logistics, fileInfoCollection, result);
 | 
				
			||||||
                        WriteJson(logistics, fileInfoCollection, result);
 | 
					                    // WriteCommaSeparatedValues(logistics, result);
 | 
				
			||||||
                        WriteCommaSeparatedValues(logistics, result);
 | 
					 | 
				
			||||||
                    }
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -133,6 +59,6 @@ internal class Run
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
[JsonSerializable(typeof(Run))]
 | 
					[JsonSerializable(typeof(Run))]
 | 
				
			||||||
internal partial class RunSourceGenerationContext : JsonSerializerContext
 | 
					internal partial class StratusRunSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -93,12 +93,17 @@ public class Wafer
 | 
				
			|||||||
            List<string> group = new();
 | 
					            List<string> group = new();
 | 
				
			||||||
            foreach (string line in lines)
 | 
					            foreach (string line in lines)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                group.Add(line);
 | 
					                if (string.IsNullOrEmpty(line.Trim()))
 | 
				
			||||||
                if (!line.StartsWith(constant.Destination))
 | 
					 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
 | 
					                group.Add(line);
 | 
				
			||||||
 | 
					                if (line.StartsWith(constant.Destination)
 | 
				
			||||||
 | 
					                    || line.Contains(constant.ProcessFailed)
 | 
				
			||||||
 | 
					                    || line.StartsWith(constant.WaferParentheses) && line.Contains(constant.IsPut))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
                    results.Add(string.Join(Environment.NewLine, group));
 | 
					                    results.Add(string.Join(Environment.NewLine, group));
 | 
				
			||||||
                    group.Clear();
 | 
					                    group.Clear();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            results.Add(string.Join(Environment.NewLine, group));
 | 
					            results.Add(string.Join(Environment.NewLine, group));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return results.AsReadOnly();
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								Adaptation/FileHandlers/txt/Constant.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Adaptation/FileHandlers/txt/Constant.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					namespace Adaptation.FileHandlers.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Constant
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Mean { get; } = "Mean";
 | 
				
			||||||
 | 
					    public string Slot { get; } = "Slot";
 | 
				
			||||||
 | 
					    public string STDD { get; } = "STDD";
 | 
				
			||||||
 | 
					    public string Batch { get; } = "Batch";
 | 
				
			||||||
 | 
					    public string Wafer { get; } = "Wafer";
 | 
				
			||||||
 | 
					    public string OneHypen { get; } = "1 - ";
 | 
				
			||||||
 | 
					    public string Recipe { get; } = "Recipe";
 | 
				
			||||||
 | 
					    public string Source { get; } = "Source:";
 | 
				
			||||||
 | 
					    public string Started { get; } = "started";
 | 
				
			||||||
 | 
					    public string Cassette { get; } = "Cassette";
 | 
				
			||||||
 | 
					    public string Finished { get; } = "finished.";
 | 
				
			||||||
 | 
					    public string Reference { get; } = "Reference";
 | 
				
			||||||
 | 
					    public string StartedAt { get; } = "started at";
 | 
				
			||||||
 | 
					    public string Thickness { get; } = "Thickness,";
 | 
				
			||||||
 | 
					    public string Destination { get; } = "Destination:";
 | 
				
			||||||
 | 
					    public string IsPut { get; } = "is put to the slot";
 | 
				
			||||||
 | 
					    public string WaferParentheses { get; } = "Wafer (";
 | 
				
			||||||
 | 
					    public string IsTaken { get; } = "is taken from the slot";
 | 
				
			||||||
 | 
					    public string ProcessFailed { get; } = "- Process failed -";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -5,6 +5,7 @@ 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.Text.Json;
 | 
					using System.Text.Json;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -16,7 +17,7 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
    private long? _TickOffset;
 | 
					    private long? _TickOffset;
 | 
				
			||||||
    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(), 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;
 | 
				
			||||||
@ -98,11 +99,13 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
					    private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        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 = new(string.Empty, null, null, new List<FileInfo>());
 | 
					        Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, Array.Empty<Test>(), Array.Empty<JsonElement>(), new List<FileInfo>());
 | 
				
			||||||
        _TickOffset ??= 0; // new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
 | 
					        _TickOffset ??= 0; // new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
 | 
				
			||||||
        _Logistics = new Logistics(this, _TickOffset.Value, reportFullPath, useSplitForMID: true);
 | 
					        _Logistics = new Logistics(this, _TickOffset.Value, reportFullPath, useSplitForMID: true);
 | 
				
			||||||
        SetFileParameterLotID(_Logistics.MID);
 | 
					        SetFileParameterLotID(_Logistics.MID);
 | 
				
			||||||
@ -111,13 +114,23 @@ public class FileRead : Shared.FileRead, IFileRead
 | 
				
			|||||||
            results.Item4.Add(fileInfo);
 | 
					            results.Item4.Add(fileInfo);
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            try
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                ReadOnlyCollection<Run>? runs = Run.Get(_TickOffset.Value, _Logistics, results.Item4);
 | 
				
			||||||
 | 
					                // if (run is null)
 | 
				
			||||||
 | 
					                //     throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks));
 | 
				
			||||||
 | 
					                if (runs.Count == 0)
 | 
				
			||||||
 | 
					                { }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            catch (Exception)
 | 
				
			||||||
 | 
					            { }
 | 
				
			||||||
            bool isBioRad;
 | 
					            bool isBioRad;
 | 
				
			||||||
            string dataText;
 | 
					            string dataText;
 | 
				
			||||||
            string cassetteID;
 | 
					            string cassetteID;
 | 
				
			||||||
            string fileNameTemp;
 | 
					            string fileNameTemp;
 | 
				
			||||||
            string tupleFileName;
 | 
					            string tupleFileName;
 | 
				
			||||||
            DateTime cassetteDateTime;
 | 
					            DateTime cassetteDateTime;
 | 
				
			||||||
            string directoryName = Path.GetDirectoryName(reportFullPath);
 | 
					            string directoryName = Path.GetDirectoryName(reportFullPath) ?? throw new Exception();
 | 
				
			||||||
            string sequenceDirectoryName = Path.Combine(directoryName, _Logistics.Sequence.ToString());
 | 
					            string sequenceDirectoryName = Path.Combine(directoryName, _Logistics.Sequence.ToString());
 | 
				
			||||||
            string originalDataBioRad = Path.Combine(directoryName, $"{_OriginalDataBioRad}{_Logistics.Sequence}.txt");
 | 
					            string originalDataBioRad = Path.Combine(directoryName, $"{_OriginalDataBioRad}{_Logistics.Sequence}.txt");
 | 
				
			||||||
            IProcessData iProcessData = new ProcessData(this, _Logistics, _TickOffset.Value, results.Item4, _OriginalDataBioRad);
 | 
					            IProcessData iProcessData = new ProcessData(this, _Logistics, _TickOffset.Value, results.Item4, _OriginalDataBioRad);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										48
									
								
								Adaptation/FileHandlers/txt/Grade.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								Adaptation/FileHandlers/txt/Grade.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,48 @@
 | 
				
			|||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Grade
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Grade(string meanThickness, string stdDev)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        MeanThickness = meanThickness;
 | 
				
			||||||
 | 
					        StdDev = stdDev;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string MeanThickness { get; }
 | 
				
			||||||
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Grade? Get(Constant constant, ReadOnlyCollection<string> groups)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Grade? result;
 | 
				
			||||||
 | 
					        string? mean = null;
 | 
				
			||||||
 | 
					        string? stdDev = null;
 | 
				
			||||||
 | 
					        int[] j = new int[] { 0 };
 | 
				
			||||||
 | 
					        foreach (string groupText in groups)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (!groupText.Contains(constant.Finished))
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            mean = string.Empty;
 | 
				
			||||||
 | 
					            stdDev = string.Empty;
 | 
				
			||||||
 | 
					            Header.ScanPast(groupText, j, constant.Mean);
 | 
				
			||||||
 | 
					            mean = Wafer.GetToken(groupText, j);
 | 
				
			||||||
 | 
					            if (mean.EndsWith(","))
 | 
				
			||||||
 | 
					                mean = mean.Remove(mean.Length - 1, 1);
 | 
				
			||||||
 | 
					            Header.ScanPast(groupText, j, constant.STDD);
 | 
				
			||||||
 | 
					            stdDev = Wafer.GetToken(groupText, j);
 | 
				
			||||||
 | 
					            if (stdDev.EndsWith(","))
 | 
				
			||||||
 | 
					                stdDev = stdDev.Remove(stdDev.Length - 1, 1);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if (mean is null || stdDev is null)
 | 
				
			||||||
 | 
					            result = null;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            result = new(meanThickness: mean,
 | 
				
			||||||
 | 
					                         stdDev: stdDev);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										96
									
								
								Adaptation/FileHandlers/txt/Header.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										96
									
								
								Adaptation/FileHandlers/txt/Header.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,96 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Header
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Header(string batch, string cassette, string dateTime)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Batch = batch;
 | 
				
			||||||
 | 
					        Cassette = cassette;
 | 
				
			||||||
 | 
					        DateTime = dateTime;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Batch { get; }
 | 
				
			||||||
 | 
					    public string Cassette { get; }
 | 
				
			||||||
 | 
					    public string DateTime { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    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;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static string GetToText(string text, int[] i, string search) =>
 | 
				
			||||||
 | 
					        text.Substring(i[0], text.IndexOf(search, i[0]) - i[0]).Trim();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static void ScanPast(string text, int[] i, string search)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        int num = text.IndexOf(search, i[0]);
 | 
				
			||||||
 | 
					        if (num <= -1)
 | 
				
			||||||
 | 
					            i[0] = text.Length;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            i[0] = num + search.Length;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static Header Get(string text, Constant constant, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Header? result;
 | 
				
			||||||
 | 
					        string batch;
 | 
				
			||||||
 | 
					        if (!text.Contains(constant.Batch) || !text.Contains(constant.Started))
 | 
				
			||||||
 | 
					            batch = string.Empty;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            for (int z = 0; z < int.MaxValue; z++)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                ScanPast(text, i, constant.Batch);
 | 
				
			||||||
 | 
					                if (!text.Substring(i[0]).Contains(constant.Batch))
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            batch = GetToText(text, i, constant.Started);
 | 
				
			||||||
 | 
					            ScanPast(text, i, constant.StartedAt);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        ScanPast(text, i, constant.Cassette);
 | 
				
			||||||
 | 
					        string cassette;
 | 
				
			||||||
 | 
					        if (!text.Substring(i[0]).Contains(constant.Started))
 | 
				
			||||||
 | 
					            cassette = string.Empty;
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            cassette = GetToText(text, i, constant.Started);
 | 
				
			||||||
 | 
					        ScanPast(text, i, constant.StartedAt);
 | 
				
			||||||
 | 
					        string dateTime = GetToEOL(text, i);
 | 
				
			||||||
 | 
					        if (dateTime.EndsWith("."))
 | 
				
			||||||
 | 
					            dateTime = dateTime.Remove(dateTime.Length - 1, 1);
 | 
				
			||||||
 | 
					        result = new(batch: batch,
 | 
				
			||||||
 | 
					                     cassette: cassette,
 | 
				
			||||||
 | 
					                     dateTime: dateTime);
 | 
				
			||||||
 | 
					        return result;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -23,10 +23,9 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
					    List<object> Shared.Properties.IProcessData.Details => _Details;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public ProcessData(IFileRead fileRead, Logistics logistics, long tickOffset, List<FileInfo> fileInfoCollection, string originalDataBioRad)
 | 
					    internal ProcessData(IFileRead fileRead, Logistics logistics, long tickOffset, List<FileInfo> fileInfoCollection, string originalDataBioRad)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        JobID = logistics.JobID;
 | 
					        JobID = logistics.JobID;
 | 
				
			||||||
        fileInfoCollection.Clear();
 | 
					 | 
				
			||||||
        _Details = new List<object>();
 | 
					        _Details = new List<object>();
 | 
				
			||||||
        MesEntity = logistics.MesEntity;
 | 
					        MesEntity = logistics.MesEntity;
 | 
				
			||||||
        _Log = LogManager.GetLogger(typeof(ProcessData));
 | 
					        _Log = LogManager.GetLogger(typeof(ProcessData));
 | 
				
			||||||
@ -52,9 +51,13 @@ public partial class ProcessData : IProcessData
 | 
				
			|||||||
            if (description.Test != (int)tests[i])
 | 
					            if (description.Test != (int)tests[i])
 | 
				
			||||||
                throw new Exception();
 | 
					                throw new Exception();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        FileInfo fileInfo = new($"{logistics.ReportFullPath}.descriptions.json");
 | 
				
			||||||
        List<Description> fileReadDescriptions = (from l in descriptions select (Description)l).ToList();
 | 
					        List<Description> fileReadDescriptions = (from l in descriptions select (Description)l).ToList();
 | 
				
			||||||
        string json = JsonSerializer.Serialize(fileReadDescriptions, fileReadDescriptions.GetType());
 | 
					        string json = JsonSerializer.Serialize(fileReadDescriptions, fileReadDescriptions.GetType());
 | 
				
			||||||
        JsonElement[] jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json);
 | 
					        File.WriteAllText(fileInfo.FullName, json);
 | 
				
			||||||
 | 
					        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
				
			||||||
 | 
					        fileInfoCollection.Add(fileInfo);
 | 
				
			||||||
 | 
					        JsonElement[] jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json) ?? throw new Exception();
 | 
				
			||||||
        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(logistics.Logistics1[0], tests.ToArray(), jsonElements, fileInfoCollection);
 | 
					        results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(logistics.Logistics1[0], tests.ToArray(), jsonElements, fileInfoCollection);
 | 
				
			||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										59
									
								
								Adaptation/FileHandlers/txt/Row.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								Adaptation/FileHandlers/txt/Row.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,59 @@
 | 
				
			|||||||
 | 
					using System.Text.Json.Serialization;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Row
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Row(Run run, int index, int i, int j)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Index = index;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        Batch = run.Header.Batch;
 | 
				
			||||||
 | 
					        Cassette = run.Header.Cassette;
 | 
				
			||||||
 | 
					        DateTime = run.Header.DateTime;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        Destination = run.Wafers[i].Destination;
 | 
				
			||||||
 | 
					        Mean = run.Wafers[i].Mean;
 | 
				
			||||||
 | 
					        PassFail = run.Wafers[i].PassFail;
 | 
				
			||||||
 | 
					        Recipe = run.Wafers[i].Recipe;
 | 
				
			||||||
 | 
					        Reference = run.Wafers[i].Reference;
 | 
				
			||||||
 | 
					        Site = run.Wafers[i].Sites[j];
 | 
				
			||||||
 | 
					        Slot = run.Wafers[i].Slot;
 | 
				
			||||||
 | 
					        Source = run.Wafers[i].Source;
 | 
				
			||||||
 | 
					        StdDev = run.Wafers[i].StdDev;
 | 
				
			||||||
 | 
					        Text = run.Wafers[i].Text;
 | 
				
			||||||
 | 
					        //
 | 
				
			||||||
 | 
					        GradeMean = run.Grade.MeanThickness;
 | 
				
			||||||
 | 
					        GradeStdDev = run.Grade.StdDev;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int Index { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string Batch { get; }
 | 
				
			||||||
 | 
					    public string Cassette { get; }
 | 
				
			||||||
 | 
					    public string DateTime { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string Destination { get; }
 | 
				
			||||||
 | 
					    public string Mean { get; }
 | 
				
			||||||
 | 
					    public string PassFail { get; }
 | 
				
			||||||
 | 
					    public string Recipe { get; }
 | 
				
			||||||
 | 
					    public string Reference { get; }
 | 
				
			||||||
 | 
					    public string Site { get; }
 | 
				
			||||||
 | 
					    public string Slot { get; }
 | 
				
			||||||
 | 
					    public string Source { get; }
 | 
				
			||||||
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					    public string Text { get; }
 | 
				
			||||||
 | 
					    //
 | 
				
			||||||
 | 
					    public string GradeMean { get; }
 | 
				
			||||||
 | 
					    public string GradeStdDev { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Row))]
 | 
				
			||||||
 | 
					internal partial class RowSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										176
									
								
								Adaptation/FileHandlers/txt/Run.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										176
									
								
								Adaptation/FileHandlers/txt/Run.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,176 @@
 | 
				
			|||||||
 | 
					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.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					internal class Run
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Run(Header header, ReadOnlyCollection<Wafer> wafers, Grade grade)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Header = header;
 | 
				
			||||||
 | 
					        Wafers = wafers;
 | 
				
			||||||
 | 
					        Grade = grade;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Header Header { get; }
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<Wafer> Wafers { get; }
 | 
				
			||||||
 | 
					    public Grade Grade { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void WriteJson(Logistics logistics, List<FileInfo> _, int r, Run result)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        FileInfo fileInfo = new($"{logistics.ReportFullPath}-{r}.run.json");
 | 
				
			||||||
 | 
					        string json = JsonSerializer.Serialize(result, RunSourceGenerationContext.Default.Run);
 | 
				
			||||||
 | 
					        File.WriteAllText(fileInfo.FullName, json);
 | 
				
			||||||
 | 
					        File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence);
 | 
				
			||||||
 | 
					        // Can't add until old parse is removed // 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, int r, Run run)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Row> results = new();
 | 
				
			||||||
 | 
					        Row row;
 | 
				
			||||||
 | 
					        int index = 0;
 | 
				
			||||||
 | 
					        for (int w = 0; w < run.Wafers.Count; w++)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            for (int s = 0; s < run.Wafers[w].Sites.Count; s++)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                row = new(run, index, w, s);
 | 
				
			||||||
 | 
					                results.Add(row);
 | 
				
			||||||
 | 
					                index += 1;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        string json = JsonSerializer.Serialize(results);
 | 
				
			||||||
 | 
					        JsonElement[]? jsonElements = JsonSerializer.Deserialize<JsonElement[]>(json);
 | 
				
			||||||
 | 
					        ReadOnlyCollection<string> lines = GetLines(logistics, jsonElements);
 | 
				
			||||||
 | 
					        File.WriteAllText($"{logistics.ReportFullPath}-{r}.csv", string.Join(Environment.NewLine, lines));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static ReadOnlyCollection<string> GetRuns(Constant constant, string text)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<string> results = new();
 | 
				
			||||||
 | 
					        string check;
 | 
				
			||||||
 | 
					        List<string> collection = new();
 | 
				
			||||||
 | 
					        List<string> lines = text.Split(new string[] { Environment.NewLine }, StringSplitOptions.None).ToList();
 | 
				
			||||||
 | 
					        lines.Add($"{constant.Batch}{constant.Started}");
 | 
				
			||||||
 | 
					        foreach (string line in lines)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (line.StartsWith(constant.Batch) && line.Contains(constant.Started))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                check = string.Join(Environment.NewLine, collection);
 | 
				
			||||||
 | 
					                if (check.Contains(constant.Finished))
 | 
				
			||||||
 | 
					                    results.Add(check);
 | 
				
			||||||
 | 
					                collection.Clear();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            collection.Add(line);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static ReadOnlyCollection<Run> GetRuns(Logistics logistics)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Run> results = new();
 | 
				
			||||||
 | 
					        int[] i;
 | 
				
			||||||
 | 
					        Constant constant = new();
 | 
				
			||||||
 | 
					        string allText = File.ReadAllText(logistics.ReportFullPath);
 | 
				
			||||||
 | 
					        string[] segments = allText.Split(new string[] { constant.Finished }, StringSplitOptions.None);
 | 
				
			||||||
 | 
					        if (segments.Length > 1)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            Run run;
 | 
				
			||||||
 | 
					            ReadOnlyCollection<string> runs = GetRuns(constant, allText);
 | 
				
			||||||
 | 
					            foreach (string text in runs)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                i = new int[] { 0 };
 | 
				
			||||||
 | 
					                Header? header = Header.Get(text, constant, i);
 | 
				
			||||||
 | 
					                if (header is not null)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    ReadOnlyCollection<string> groups = Wafer.GetGroups(text, constant, i);
 | 
				
			||||||
 | 
					                    if (groups.Count > 0)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        ReadOnlyCollection<Wafer> wafers = Wafer.Get(constant, groups);
 | 
				
			||||||
 | 
					                        if (wafers.Count > 0)
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            Grade? grade = Grade.Get(constant, groups);
 | 
				
			||||||
 | 
					                            if (grade is null)
 | 
				
			||||||
 | 
					                                continue;
 | 
				
			||||||
 | 
					                            run = new(header, wafers, grade);
 | 
				
			||||||
 | 
					                            results.Add(run);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static ReadOnlyCollection<Run> Get(long tickOffset, Logistics logistics, List<FileInfo> fileInfoCollection)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        ReadOnlyCollection<Run> results = GetRuns(logistics);
 | 
				
			||||||
 | 
					        DateTime afterCheck = new(File.GetLastWriteTime(logistics.ReportFullPath).Ticks + tickOffset);
 | 
				
			||||||
 | 
					        if (logistics.DateTimeFromSequence != afterCheck)
 | 
				
			||||||
 | 
					            results = new(new List<Run>());
 | 
				
			||||||
 | 
					        for (int i = 0; i < results.Count; i++)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            WriteJson(logistics, fileInfoCollection, i, results[i]);
 | 
				
			||||||
 | 
					            WriteCommaSeparatedValues(logistics, i, results[i]);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[JsonSourceGenerationOptions(WriteIndented = true)]
 | 
				
			||||||
 | 
					[JsonSerializable(typeof(Run))]
 | 
				
			||||||
 | 
					internal partial class RunSourceGenerationContext : JsonSerializerContext
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										266
									
								
								Adaptation/FileHandlers/txt/Wafer.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										266
									
								
								Adaptation/FileHandlers/txt/Wafer.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,266 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Collections.ObjectModel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation.FileHandlers.txt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#nullable enable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class Wafer
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Wafer(string destination, string mean, string passFail, string recipe, string reference, ReadOnlyCollection<string> sites, string slot, string source, string stdDev, string waferText)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        Destination = destination;
 | 
				
			||||||
 | 
					        Mean = mean;
 | 
				
			||||||
 | 
					        PassFail = passFail;
 | 
				
			||||||
 | 
					        Recipe = recipe;
 | 
				
			||||||
 | 
					        Reference = reference;
 | 
				
			||||||
 | 
					        Sites = sites;
 | 
				
			||||||
 | 
					        Slot = slot;
 | 
				
			||||||
 | 
					        Source = source;
 | 
				
			||||||
 | 
					        StdDev = stdDev;
 | 
				
			||||||
 | 
					        Text = waferText;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public string Destination { get; }
 | 
				
			||||||
 | 
					    public string Mean { get; }
 | 
				
			||||||
 | 
					    public string PassFail { get; }
 | 
				
			||||||
 | 
					    public string Recipe { get; }
 | 
				
			||||||
 | 
					    public string Reference { get; }
 | 
				
			||||||
 | 
					    public ReadOnlyCollection<string> Sites { get; }
 | 
				
			||||||
 | 
					    public string Slot { get; }
 | 
				
			||||||
 | 
					    public string Source { get; }
 | 
				
			||||||
 | 
					    public string StdDev { get; }
 | 
				
			||||||
 | 
					    public string Text { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    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 bool IsNullOrWhiteSpace(string search)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool flag;
 | 
				
			||||||
 | 
					        int num = 0;
 | 
				
			||||||
 | 
					        while (true)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (num >= search.Length)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                flag = true;
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else if (char.IsWhiteSpace(search[num]))
 | 
				
			||||||
 | 
					                num++;
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                flag = false;
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return flag;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string PeekNextLine(string text, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        int num = i[0];
 | 
				
			||||||
 | 
					        string toEOL = Header.GetToEOL(text, i);
 | 
				
			||||||
 | 
					        i[0] = num;
 | 
				
			||||||
 | 
					        return toEOL;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static ReadOnlyCollection<string> GetGroups(string text, Constant constant, int[] i)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<string> results = new();
 | 
				
			||||||
 | 
					        string[] lines = text.Substring(i[0]).Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
 | 
				
			||||||
 | 
					        if (lines.Length > 0)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            List<string> group = new();
 | 
				
			||||||
 | 
					            foreach (string line in lines)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (string.IsNullOrEmpty(line.Trim()))
 | 
				
			||||||
 | 
					                    continue;
 | 
				
			||||||
 | 
					                group.Add(line);
 | 
				
			||||||
 | 
					                if (line.StartsWith(constant.Destination)
 | 
				
			||||||
 | 
					                    || line.Contains(constant.ProcessFailed)
 | 
				
			||||||
 | 
					                    || line.StartsWith(constant.WaferParentheses) && line.Contains(constant.IsPut))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    results.Add(string.Join(Environment.NewLine, group));
 | 
				
			||||||
 | 
					                    group.Clear();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            results.Add(string.Join(Environment.NewLine, group));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static ReadOnlyCollection<Wafer> Get(Constant constant, ReadOnlyCollection<string> groups)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        List<Wafer> results = new();
 | 
				
			||||||
 | 
					        string mean;
 | 
				
			||||||
 | 
					        string slot;
 | 
				
			||||||
 | 
					        Wafer wafer;
 | 
				
			||||||
 | 
					        string recipe;
 | 
				
			||||||
 | 
					        string source;
 | 
				
			||||||
 | 
					        string stdDev;
 | 
				
			||||||
 | 
					        string nextLine;
 | 
				
			||||||
 | 
					        string passFail;
 | 
				
			||||||
 | 
					        string reference;
 | 
				
			||||||
 | 
					        string thickness;
 | 
				
			||||||
 | 
					        string waferText;
 | 
				
			||||||
 | 
					        string destination;
 | 
				
			||||||
 | 
					        List<string> sites;
 | 
				
			||||||
 | 
					        int[] j = new int[] { 0 };
 | 
				
			||||||
 | 
					        foreach (string groupText in groups)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            j[0] = 0;
 | 
				
			||||||
 | 
					            sites = new();
 | 
				
			||||||
 | 
					            if (groupText.Contains(constant.ProcessFailed))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                mean = string.Empty;
 | 
				
			||||||
 | 
					                slot = string.Empty;
 | 
				
			||||||
 | 
					                recipe = string.Empty;
 | 
				
			||||||
 | 
					                source = string.Empty;
 | 
				
			||||||
 | 
					                stdDev = string.Empty;
 | 
				
			||||||
 | 
					                passFail = string.Empty;
 | 
				
			||||||
 | 
					                reference = string.Empty;
 | 
				
			||||||
 | 
					                waferText = string.Empty;
 | 
				
			||||||
 | 
					                destination = string.Empty;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else if (groupText.Contains(constant.Reference))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                mean = string.Empty;
 | 
				
			||||||
 | 
					                slot = string.Empty;
 | 
				
			||||||
 | 
					                recipe = string.Empty;
 | 
				
			||||||
 | 
					                stdDev = string.Empty;
 | 
				
			||||||
 | 
					                passFail = string.Empty;
 | 
				
			||||||
 | 
					                waferText = string.Empty;
 | 
				
			||||||
 | 
					                if (!groupText.Contains(constant.IsTaken))
 | 
				
			||||||
 | 
					                    source = string.Empty;
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.IsTaken);
 | 
				
			||||||
 | 
					                    source = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Reference);
 | 
				
			||||||
 | 
					                reference = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                if (groupText.Contains(constant.Destination))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.Source);
 | 
				
			||||||
 | 
					                    source = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.Destination);
 | 
				
			||||||
 | 
					                    destination = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.IsPut);
 | 
				
			||||||
 | 
					                    destination = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                if (!groupText.Contains(constant.Wafer))
 | 
				
			||||||
 | 
					                    continue;
 | 
				
			||||||
 | 
					                if (!groupText.Contains(constant.IsTaken))
 | 
				
			||||||
 | 
					                    source = string.Empty;
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.IsTaken);
 | 
				
			||||||
 | 
					                    source = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Wafer);
 | 
				
			||||||
 | 
					                waferText = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                if (waferText.EndsWith("."))
 | 
				
			||||||
 | 
					                    waferText = waferText.Remove(waferText.Length - 1, 1);
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Slot);
 | 
				
			||||||
 | 
					                slot = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Recipe);
 | 
				
			||||||
 | 
					                recipe = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                if (recipe.EndsWith("."))
 | 
				
			||||||
 | 
					                    recipe = recipe.Remove(recipe.Length - 1, 1);
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Thickness);
 | 
				
			||||||
 | 
					                _ = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                nextLine = PeekNextLine(groupText, j);
 | 
				
			||||||
 | 
					                if (nextLine.Contains(constant.OneHypen))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.OneHypen);
 | 
				
			||||||
 | 
					                    _ = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                for (int k = 0; k < 100; k++)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    nextLine = PeekNextLine(groupText, j);
 | 
				
			||||||
 | 
					                    if (nextLine.Contains("Slot"))
 | 
				
			||||||
 | 
					                        break;
 | 
				
			||||||
 | 
					                    if (string.IsNullOrEmpty(nextLine))
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        _ = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                        continue;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    thickness = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                    if (thickness == constant.Thickness)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        _ = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                        continue;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    sites.Add(thickness);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Slot);
 | 
				
			||||||
 | 
					                _ = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                passFail = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                if (passFail.EndsWith("."))
 | 
				
			||||||
 | 
					                    passFail = passFail.Remove(passFail.Length - 1, 1);
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.Mean);
 | 
				
			||||||
 | 
					                mean = GetToken(groupText, j);
 | 
				
			||||||
 | 
					                if (mean.EndsWith(","))
 | 
				
			||||||
 | 
					                    mean = mean.Remove(mean.Length - 1, 1);
 | 
				
			||||||
 | 
					                Header.ScanPast(groupText, j, constant.STDD);
 | 
				
			||||||
 | 
					                stdDev = Header.GetToEOL(groupText, j);
 | 
				
			||||||
 | 
					                if (stdDev.EndsWith("."))
 | 
				
			||||||
 | 
					                    stdDev = stdDev.Remove(stdDev.Length - 1, 1);
 | 
				
			||||||
 | 
					                reference = string.Empty;
 | 
				
			||||||
 | 
					                if (groupText.Contains(constant.Destination))
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.Source);
 | 
				
			||||||
 | 
					                    source = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.Destination);
 | 
				
			||||||
 | 
					                    destination = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.IsTaken);
 | 
				
			||||||
 | 
					                    source = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                    Header.ScanPast(groupText, j, constant.IsPut);
 | 
				
			||||||
 | 
					                    destination = Header.GetToEOL(groupText, j).Trim();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            wafer = new(destination: destination,
 | 
				
			||||||
 | 
					                        mean: mean,
 | 
				
			||||||
 | 
					                        passFail: passFail,
 | 
				
			||||||
 | 
					                        recipe: recipe,
 | 
				
			||||||
 | 
					                        reference: reference,
 | 
				
			||||||
 | 
					                        sites: sites.AsReadOnly(),
 | 
				
			||||||
 | 
					                        slot: slot,
 | 
				
			||||||
 | 
					                        source: source,
 | 
				
			||||||
 | 
					                        stdDev: stdDev,
 | 
				
			||||||
 | 
					                        waferText: waferText);
 | 
				
			||||||
 | 
					            results.Add(wafer);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return results.AsReadOnly();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -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;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -179,3 +180,15 @@ 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 long HeaderId { get; set; }
 | 
				
			||||||
        public string HeaderIdDirectory { get; set; }
 | 
					 | 
				
			||||||
        public string UniqueId { get; set; }
 | 
					        public string UniqueId { get; set; }
 | 
				
			||||||
        public string DestinationFileName { get; set; }
 | 
					        public string SubGroupId { get; set; }
 | 
				
			||||||
        public string SourceFileName { get; set; }
 | 
					 | 
				
			||||||
        public string AttachmentId { get; set; }
 | 
					        public string AttachmentId { get; set; }
 | 
				
			||||||
 | 
					        public string SourceFileName { get; set; }
 | 
				
			||||||
 | 
					        public string HeaderIdDirectory { get; set; }
 | 
				
			||||||
 | 
					        public string DestinationFileName { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Attachment(string subGroupId, long headerId, string headerIdDirectory, string uniqueId, string destinationFileName, string sourceFileName)
 | 
					        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; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // this is just a helper function to make displaying the results easier
 | 
					        public override string ToString()
 | 
				
			||||||
        public override string ToString() => JsonSerializer.Serialize(this, GetType());
 | 
					        {
 | 
				
			||||||
 | 
					            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;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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,63 @@
 | 
				
			|||||||
 | 
					#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 BIORAD4_EQPT : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD4_EQPT EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD4_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD4_EQPT(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_59_0__BIORAD4_EQPT__DownloadTXTFile()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DataBioRad.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,93 @@
 | 
				
			|||||||
 | 
					#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 BIORAD4 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD4 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD4() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD4(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__BIORAD4__txt()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.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_59_0__BIORAD4__Stratus()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.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_59_0__BIORAD4__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DetailDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
 | 
				
			||||||
 | 
					        Assert.IsTrue(fileNameAndJson[1].Contains(check));
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					#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 BIORAD5_EQPT : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD5_EQPT EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD5_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD5_EQPT(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_59_0__BIORAD5_EQPT__DownloadTXTFile()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DataBioRad.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,93 @@
 | 
				
			|||||||
 | 
					#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 BIORAD5 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD5 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD5() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD5(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__BIORAD5__txt()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.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_59_0__BIORAD5__Stratus()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.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_59_0__BIORAD5__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DetailDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
 | 
				
			||||||
 | 
					        Assert.IsTrue(fileNameAndJson[1].Contains(check));
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
 | 
				
			||||||
 | 
					        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 MET08THFTIRSTRATUS : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static MET08THFTIRSTRATUS EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static MET08THFTIRSTRATUS() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRSTRATUS() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRSTRATUS(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637738592809956919.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,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_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD4_EQPT : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD4_EQPT EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD4_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD4_EQPT(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__BIORAD4_EQPT__DownloadTXTFile()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DataBioRad.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,93 @@
 | 
				
			|||||||
 | 
					#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 BIORAD4 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD4 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD4() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD4(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__BIORAD4__txt()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.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__BIORAD4__Stratus()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.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__BIORAD4__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DetailDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
 | 
				
			||||||
 | 
					        Assert.IsTrue(fileNameAndJson[1].Contains(check));
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
 | 
				
			||||||
 | 
					        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_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD5_EQPT : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD5_EQPT EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD5_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD5_EQPT(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__BIORAD5_EQPT__DownloadTXTFile()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DataBioRad.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,93 @@
 | 
				
			|||||||
 | 
					#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 BIORAD5 : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static BIORAD5 EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static BIORAD5() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public BIORAD5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new BIORAD5(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__BIORAD5__txt()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.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__BIORAD5__Stratus()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.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__BIORAD5__QS408M()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "DetailDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
 | 
					        string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
 | 
				
			||||||
 | 
					        Assert.IsTrue(fileNameAndJson[1].Contains(check));
 | 
				
			||||||
 | 
					        File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
 | 
				
			||||||
 | 
					        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_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    internal static string DummyRoot { get; private set; }
 | 
				
			||||||
 | 
					    internal static MET08THFTIRSTRATUS EAFLoggingUnitTesting { get; private set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    static MET08THFTIRSTRATUS() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRSTRATUS() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (EAFLoggingUnitTesting is null)
 | 
				
			||||||
 | 
					            throw new Exception();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public MET08THFTIRSTRATUS(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__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__MET08THFTIRSTRATUS__Dummy()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "637738592809956919.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 Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
using System.Diagnostics;
 | 
					using System.Diagnostics;
 | 
				
			||||||
using System.Reflection;
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
				
			|||||||
@ -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 Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Adaptation._Tests.Extract.Production.v2_58_0;
 | 
					namespace Adaptation._Tests.Extract.Production.v2_58_0;
 | 
				
			||||||
 | 
				
			|||||||
@ -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._Tests.Shared;
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
using Adaptation.Shared;
 | 
					using Adaptation.Shared;
 | 
				
			||||||
using Adaptation.Shared.Methods;
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										44
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD4-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD4-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					using System.Threading;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD4_EQPT
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD4_EQPT _BIORAD4_EQPT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD4_EQPT.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD4_EQPT = CreateSelfDescription.Production.v2_59_0.BIORAD4_EQPT.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4_EQPT__DownloadTXTFile() => _BIORAD4_EQPT.Production__v2_59_0__BIORAD4_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4_EQPT__DownloadTXTFile638574038162800870__First()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "DataBioRad.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _BIORAD4_EQPT.Production__v2_59_0__BIORAD4_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        _ = _BIORAD4_EQPT.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        for (int i = 0; i < short.MaxValue; i++)
 | 
				
			||||||
 | 
					            Thread.Sleep(500);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										243
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD4.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										243
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD4.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,243 @@
 | 
				
			|||||||
 | 
					#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 BIORAD4
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD4 _BIORAD4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD4.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD4 = CreateSelfDescription.Production.v2_59_0.BIORAD4.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt() => _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt638763379187800166__Partial()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt637730081979221342__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt637818036815840307__ProcessFailed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt637746296480404920__Failure()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__txt638187028378748930__THigh()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus() => _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus637730081979221342__RDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus637730081979221342__1TRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus637733400573863329__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus637818036815840307__ProcessFailed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__QS408M() => _BIORAD4.Production__v2_59_0__BIORAD4__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus638010209430211312__MissingRecipe()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus638613924531133783__14()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD4__Stratus638675062726795419__T()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_59_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										27
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD5-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD5-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD5_EQPT
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD5_EQPT _BIORAD5_EQPT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD5_EQPT.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD5_EQPT = CreateSelfDescription.Production.v2_59_0.BIORAD5_EQPT.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5_EQPT__DownloadTXTFile() => _BIORAD5_EQPT.Production__v2_59_0__BIORAD5_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										114
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD5.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								Adaptation/_Tests/Extract/Production/v2.59.0/BIORAD5.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,114 @@
 | 
				
			|||||||
 | 
					#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 BIORAD5
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.BIORAD5 _BIORAD5;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.BIORAD5.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD5 = CreateSelfDescription.Production.v2_59_0.BIORAD5.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__txt() => _BIORAD5.Production__v2_59_0__BIORAD5__txt();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__txt638221788953480284__MorePoints()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_59_0__BIORAD5__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__Stratus() => _BIORAD5.Production__v2_59_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__Stratus637738592809956919__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_59_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__Stratus637805172599370243__Why()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_59_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__BIORAD5__QS408M() => _BIORAD5.Production__v2_59_0__BIORAD5__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,162 @@
 | 
				
			|||||||
 | 
					#if v2_59_0
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_59_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRSTRATUS
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_59_0.MET08THFTIRSTRATUS _MET08THFTIRSTRATUS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_59_0.MET08THFTIRSTRATUS.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS = CreateSelfDescription.Production.v2_59_0.MET08THFTIRSTRATUS.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__MoveMatchingFiles() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__MoveMatchingFiles638014829236768048__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        MethodBase method = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
 | 
				
			||||||
 | 
					        _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
 | 
				
			||||||
 | 
					        AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__IQSSi() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        MethodBase method = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
 | 
				
			||||||
 | 
					        _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
 | 
				
			||||||
 | 
					        AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        MethodBase method = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
 | 
				
			||||||
 | 
					        _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
 | 
				
			||||||
 | 
					        AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments638131299562362655__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__APC() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__APC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__SPaCe() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__SPaCe();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__Processed() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__Archive() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_59_0__MET08THFTIRSTRATUS__Dummy() => _MET08THFTIRSTRATUS.Production__v2_59_0__MET08THFTIRSTRATUS__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										44
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD4-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD4-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					using System.Threading;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD4_EQPT
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD4_EQPT _BIORAD4_EQPT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD4_EQPT.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD4_EQPT = CreateSelfDescription.Production.v2_60_0.BIORAD4_EQPT.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4_EQPT__DownloadTXTFile() => _BIORAD4_EQPT.Production__v2_60_0__BIORAD4_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4_EQPT__DownloadTXTFile638574038162800870__First()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "DataBioRad.txt";
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _BIORAD4_EQPT.Production__v2_60_0__BIORAD4_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        _ = _BIORAD4_EQPT.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        for (int i = 0; i < short.MaxValue; i++)
 | 
				
			||||||
 | 
					            Thread.Sleep(500);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										243
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD4.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										243
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD4.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,243 @@
 | 
				
			|||||||
 | 
					#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_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD4
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD4 _BIORAD4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD4.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD4 = CreateSelfDescription.Production.v2_60_0.BIORAD4.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt() => _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt638763379187800166__Partial()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt637730081979221342__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt637818036815840307__ProcessFailed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt637746296480404920__Failure()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__txt638187028378748930__THigh()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus() => _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus637730081979221342__RDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus637730081979221342__1TRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus637733400573863329__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus637818036815840307__ProcessFailed()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__QS408M() => _BIORAD4.Production__v2_60_0__BIORAD4__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus638010209430211312__MissingRecipe()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus638613924531133783__14()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD4__Stratus638675062726795419__T()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD4.Production__v2_60_0__BIORAD4__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
					        Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										27
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD5-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD5-EQPT.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD5_EQPT
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD5_EQPT _BIORAD5_EQPT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD5_EQPT.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD5_EQPT = CreateSelfDescription.Production.v2_60_0.BIORAD5_EQPT.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5_EQPT__DownloadTXTFile() => _BIORAD5_EQPT.Production__v2_60_0__BIORAD5_EQPT__DownloadTXTFile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
							
								
								
									
										114
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD5.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								Adaptation/_Tests/Extract/Production/v2.60.0/BIORAD5.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,114 @@
 | 
				
			|||||||
 | 
					#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_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class BIORAD5
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.BIORAD5 _BIORAD5;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.BIORAD5.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _BIORAD5 = CreateSelfDescription.Production.v2_60_0.BIORAD5.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static void NonThrowTryCatch()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        try
 | 
				
			||||||
 | 
					        { throw new Exception(); }
 | 
				
			||||||
 | 
					        catch (Exception) { }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__txt() => _BIORAD5.Production__v2_60_0__BIORAD5__txt();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__txt638221788953480284__MorePoints()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "*DataBioRad.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_60_0__BIORAD5__txt();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__Stratus() => _BIORAD5.Production__v2_60_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__Stratus637738592809956919__ReactorAndRDS()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_60_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__Stratus637805172599370243__Why()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        DateTime dateTime;
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        string check = "CassetteDataBioRad_*.txt";
 | 
				
			||||||
 | 
					        _BIORAD5.Production__v2_60_0__BIORAD5__Stratus();
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21  08:39");
 | 
				
			||||||
 | 
					        Assert.AreEqual(logistics.DateTimeFromSequence, dateTime);
 | 
				
			||||||
 | 
					        NonThrowTryCatch();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__BIORAD5__QS408M() => _BIORAD5.Production__v2_60_0__BIORAD5__QS408M();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -0,0 +1,164 @@
 | 
				
			|||||||
 | 
					#if true
 | 
				
			||||||
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared;
 | 
				
			||||||
 | 
					using Adaptation.Shared.Methods;
 | 
				
			||||||
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
 | 
					using System.Diagnostics;
 | 
				
			||||||
 | 
					using System.Reflection;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace Adaptation._Tests.Extract.Production.v2_60_0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TestClass]
 | 
				
			||||||
 | 
					public class MET08THFTIRSTRATUS
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable CA2254
 | 
				
			||||||
 | 
					#pragma warning disable IDE0060
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static CreateSelfDescription.Production.v2_60_0.MET08THFTIRSTRATUS _MET08THFTIRSTRATUS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [ClassInitialize]
 | 
				
			||||||
 | 
					    public static void ClassInitialize(TestContext testContext)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        CreateSelfDescription.Production.v2_60_0.MET08THFTIRSTRATUS.ClassInitialize(testContext);
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS = CreateSelfDescription.Production.v2_60_0.MET08THFTIRSTRATUS.EAFLoggingUnitTesting;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__MoveMatchingFiles() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__MoveMatchingFiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__MoveMatchingFiles638918243047505986__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__MoveMatchingFiles();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__IQSSi() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__IQSSi();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        MethodBase method = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
 | 
				
			||||||
 | 
					        _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
 | 
				
			||||||
 | 
					        AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        MethodBase method = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
 | 
				
			||||||
 | 
					        _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
 | 
				
			||||||
 | 
					        AdaptationTesting.UpdatePassDirectory(variables[2]);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsight();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments638131299562362655__Normal()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        string check = "*.pdsf";
 | 
				
			||||||
 | 
					        bool validatePDSF = false;
 | 
				
			||||||
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
 | 
					        _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments();
 | 
				
			||||||
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
 | 
				
			||||||
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					        Logistics logistics = new(fileRead);
 | 
				
			||||||
 | 
					        _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__APC() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__APC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__SPaCe() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__SPaCe();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__Processed() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__Processed();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__Archive() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__Archive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEBUG
 | 
				
			||||||
 | 
					    [Ignore]
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    [TestMethod]
 | 
				
			||||||
 | 
					    public void Production__v2_60_0__MET08THFTIRSTRATUS__Dummy() => _MET08THFTIRSTRATUS.Production__v2_60_0__MET08THFTIRSTRATUS__Dummy();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
@ -41,7 +41,7 @@ public class BIORAD4
 | 
				
			|||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
@ -59,7 +59,7 @@ public class BIORAD4
 | 
				
			|||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
				
			|||||||
@ -51,7 +51,7 @@ public class MET08THFTIRSTRATUS
 | 
				
			|||||||
        _MET08THFTIRSTRATUS.Staging__v2_36_3__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS__();
 | 
					        _MET08THFTIRSTRATUS.Staging__v2_36_3__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS__();
 | 
				
			||||||
        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
@ -75,7 +75,7 @@ public class MET08THFTIRSTRATUS
 | 
				
			|||||||
        _MET08THFTIRSTRATUS.Staging__v2_36_3__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___();
 | 
					        _MET08THFTIRSTRATUS.Staging__v2_36_3__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___();
 | 
				
			||||||
        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
				
			|||||||
@ -41,7 +41,7 @@ public class BIORAD4
 | 
				
			|||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
				
			|||||||
@ -51,7 +51,7 @@ public class MET08THFTIRSTRATUS
 | 
				
			|||||||
        _MET08THFTIRSTRATUS.Staging__v2_39_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS__();
 | 
					        _MET08THFTIRSTRATUS.Staging__v2_39_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS__();
 | 
				
			||||||
        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
@ -75,7 +75,7 @@ public class MET08THFTIRSTRATUS
 | 
				
			|||||||
        _MET08THFTIRSTRATUS.Staging__v2_39_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___();
 | 
					        _MET08THFTIRSTRATUS.Staging__v2_39_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___();
 | 
				
			||||||
        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
				
			|||||||
@ -41,7 +41,7 @@ public class BIORAD4
 | 
				
			|||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
					        string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
 | 
					        _ = Shared.AdaptationTesting.GetProcessData(variables[2], variables[4]);
 | 
				
			||||||
        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
					        IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _ = fileRead.ReExtract();
 | 
					        _ = fileRead.ReExtract();
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -51,7 +51,7 @@ public class MET08THFTIRSTRATUS : 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 MET08THFTIRSTRATUS : 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("MET08THFTIRSTRATUS", "v2.58.0"),
 | 
					            new("MET08THFTIRSTRATUS", "v2.60.0"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        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;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,5 @@
 | 
				
			|||||||
using Adaptation._Tests.Shared;
 | 
					using Adaptation._Tests.Shared;
 | 
				
			||||||
 | 
					using Adaptation.FileHandlers.Stratus;
 | 
				
			||||||
using Microsoft.Extensions.Logging;
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
					using Microsoft.VisualStudio.TestTools.UnitTesting;
 | 
				
			||||||
using System;
 | 
					using System;
 | 
				
			||||||
@ -51,139 +52,137 @@ public class Stratus : 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]
 | 
				
			||||||
    public void TestDescriptor()
 | 
					    public void TestDescriptor()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        FileHandlers.Stratus.Descriptor descriptor;
 | 
					        Descriptor descriptor;
 | 
				
			||||||
        MethodBase methodBase = new StackFrame().GetMethod();
 | 
					        MethodBase methodBase = new StackFrame().GetMethod();
 | 
				
			||||||
        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
					        LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
 | 
				
			||||||
        descriptor = FileHandlers.Stratus.ProcessData.GetDescriptor(string.Empty);
 | 
					        descriptor = ProcessData.GetDescriptor(string.Empty);
 | 
				
			||||||
        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(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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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));
 | 
				
			||||||
        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
 | 
				
			||||||
        descriptor = FileHandlers.Stratus.ProcessData.GetDescriptor("MP");
 | 
					        descriptor = ProcessData.GetDescriptor("MP");
 | 
				
			||||||
        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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.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 = FileHandlers.Stratus.ProcessData.GetDescriptor("75-QP1414-SPLIT4");
 | 
					        descriptor = ProcessData.GetDescriptor("75-QP1414-SPLIT4");
 | 
				
			||||||
        Assert.IsTrue(!string.IsNullOrEmpty(descriptor.Cassette));
 | 
					        // 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 = FileHandlers.Stratus.ProcessData.GetDescriptor("B48");
 | 
					        descriptor = ProcessData.GetDescriptor("B48");
 | 
				
			||||||
        Assert.IsTrue(descriptor.Cassette == "B48");
 | 
					        // Assert.IsTrue(descriptor.Lot == "B48");
 | 
				
			||||||
        descriptor = FileHandlers.Stratus.ProcessData.GetDescriptor("B48");
 | 
					 | 
				
			||||||
        Assert.IsTrue(descriptor.Cassette == "B48");
 | 
					 | 
				
			||||||
        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(string.IsNullOrEmpty(descriptor.PSN));
 | 
					        Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
 | 
				
			||||||
@ -204,8 +203,8 @@ public class Stratus : 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("BIORAD4", "v2.58.0"),
 | 
					            new("BIORAD4", "v2.60.0"),
 | 
				
			||||||
            new("BIORAD5", "v2.58.0"),
 | 
					            new("BIORAD5", "v2.60.0"),
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        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;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										109
									
								
								Adaptation/_Tests/Static/stratus.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										109
									
								
								Adaptation/_Tests/Static/stratus.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,109 @@
 | 
				
			|||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('gv.thicknessMeanSlotOne', ''), $('dcp.BIORAD5/csv/Count', ''), $('dcp.BIORAD5/csv/Index', ''), $('dcp.BIORAD5/csv/Slot', ''), $('dcp.BIORAD5/csv/Mean', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue5(thicknessMeanSlotOne, count, index, slot, mean) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (count !== 2 || index !== 0 || slot !== '1' || mean == '')
 | 
				
			||||||
 | 
					        result = thicknessMeanSlotOne;
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        result = mean;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values14 = [
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '1', mean: '1.23', result: '1.23' },
 | 
				
			||||||
 | 
					    { count: 3, index: 0, slot: '1', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 1, slot: '1', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '2', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values14.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue5(element.count, element.index, element.slot, element.mean);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('gv.thicknessMeanSlotTwentyFive', ''), $('dcp.BIORAD5/csv/Count', ''), $('dcp.BIORAD5/csv/Index', ''), $('dcp.BIORAD5/csv/Slot', ''), $('dcp.BIORAD5/csv/Mean', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue31(thicknessMeanSlotTwentyFive, count, index, slot, mean) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (count !== 2 || index !== 1 || slot !== '25' || mean == '')
 | 
				
			||||||
 | 
					        result = thicknessMeanSlotTwentyFive;
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        result = mean;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values40 = [
 | 
				
			||||||
 | 
					    { count: 2, index: 1, slot: '25', mean: '1.23', result: '1.23' },
 | 
				
			||||||
 | 
					    { count: 3, index: 0, slot: '25', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '25', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '24', mean: '1.23', result: '' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values40.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue31(element.count, element.index, element.slot, element.mean);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('dcp.BIORAD5/csv/Count', ''), $('dcp.BIORAD5/csv/Index', ''), $('dcp.BIORAD5/csv/Slot', ''), $('gv.thicknessMeanSlotOne', ''), $('gv.thicknessMeanSlotTwentyFive', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue57(count, index, slot, thicknessMeanSlotOne, thicknessMeanSlotTwentyFive) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (count !== 2 || index !== 1 || slot !== "25" || thicknessMeanSlotOne == '' || thicknessMeanSlotTwentyFive == '')
 | 
				
			||||||
 | 
					        result = '';
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        result = Math.round((parseFloat(thicknessMeanSlotOne) - parseFloat(thicknessMeanSlotTwentyFive)) * 1000) / 1000;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values66 = [
 | 
				
			||||||
 | 
					    { count: 2, index: 1, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '0.051' },
 | 
				
			||||||
 | 
					    { count: 3, index: 0, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '24', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values66.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue57(element.count, element.index, element.slot, element.thicknessMeanSlotOne, element.thicknessMeanSlotTwentyFive);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// getValue($('dcp.BIORAD5/csv/Count', ''), $('dcp.BIORAD5/csv/Index', ''), $('dcp.BIORAD5/csv/Slot', ''), $('gv.thicknessMeanSlotOne', ''), $('gv.thicknessMeanSlotTwentyFive', ''));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function getValue(count, index, slot, thicknessMeanSlotOne, thicknessMeanSlotTwentyFive) {
 | 
				
			||||||
 | 
					    let result = null;
 | 
				
			||||||
 | 
					    if (count !== 2 || index !== 1 || slot !== "25" || thicknessMeanSlotOne == '' || thicknessMeanSlotTwentyFive == '')
 | 
				
			||||||
 | 
					        result = '';
 | 
				
			||||||
 | 
					    else {
 | 
				
			||||||
 | 
					        const thick01 = parseFloat(thicknessMeanSlotOne);
 | 
				
			||||||
 | 
					        const thick25 = parseFloat(thicknessMeanSlotTwentyFive);
 | 
				
			||||||
 | 
					        const percent = Math.abs(thick01 - thick25) / ((thick01 + thick25) / 2) * 100;
 | 
				
			||||||
 | 
					        result = (Math.round(percent * 1000)) / 1000;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const values92 = [
 | 
				
			||||||
 | 
					    { count: 2, index: 1, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '0.558' },
 | 
				
			||||||
 | 
					    { count: 3, index: 0, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '25', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					    { count: 2, index: 0, slot: '24', thicknessMeanSlotOne: '9.163', thicknessMeanSlotTwentyFive: '9.112', result: '' },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					values92.forEach(element => {
 | 
				
			||||||
 | 
					    let result = getValue(element.count, element.index, element.slot, element.thicknessMeanSlotOne, element.thicknessMeanSlotTwentyFive);
 | 
				
			||||||
 | 
					    if (result != element.result)
 | 
				
			||||||
 | 
					        console.error("result doesn't match!");
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        console.info('Match');
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
@ -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()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
@ -124,15 +124,21 @@
 | 
				
			|||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Descriptor.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Descriptor.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Detail.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Detail.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\FileRead.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\FileRead.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Footer.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Grade.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Header.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Header.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Point.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Point.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\ProcessData.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\ProcessData.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Row.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Row.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Run.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Run.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\Stratus\Wafer.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\Stratus\Wafer.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Constant.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\txt\FileRead.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\FileRead.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Grade.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Header.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\FileHandlers\txt\ProcessData.cs" />
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\ProcessData.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Row.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Run.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Adaptation\FileHandlers\txt\Wafer.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Ifx\Eaf\Common\Configuration\ConnectionSetting.cs" />
 | 
					    <Compile Include="Adaptation\Ifx\Eaf\Common\Configuration\ConnectionSetting.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\File.cs" />
 | 
					    <Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\File.cs" />
 | 
				
			||||||
    <Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\FilePathGenerator.cs" />
 | 
					    <Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\FilePathGenerator.cs" />
 | 
				
			||||||
@ -165,6 +171,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" />
 | 
				
			||||||
@ -183,13 +190,13 @@
 | 
				
			|||||||
      <Version>7.2.4630.5</Version>
 | 
					      <Version>7.2.4630.5</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
    <PackageReference Include="Infineon.EAF.Runtime">
 | 
					    <PackageReference Include="Infineon.EAF.Runtime">
 | 
				
			||||||
      <Version>2.58.0</Version>
 | 
					      <Version>2.60.0</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
    <PackageReference Include="Pdfbox">
 | 
					    <PackageReference Include="Pdfbox">
 | 
				
			||||||
      <Version>1.1.1</Version>
 | 
					      <Version>1.1.1</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
    <PackageReference Include="System.Text.Json">
 | 
					    <PackageReference Include="System.Text.Json">
 | 
				
			||||||
      <Version>8.0.3</Version>
 | 
					      <Version>8.0.5</Version>
 | 
				
			||||||
    </PackageReference>
 | 
					    </PackageReference>
 | 
				
			||||||
  </ItemGroup>
 | 
					  </ItemGroup>
 | 
				
			||||||
  <ItemGroup />
 | 
					  <ItemGroup />
 | 
				
			||||||
 | 
				
			|||||||
@ -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.60.0.0")]
 | 
				
			||||||
[assembly: AssemblyFileVersion("2.58.0.0")]
 | 
					[assembly: AssemblyFileVersion("2.60.0.0")]
 | 
				
			||||||
		Reference in New Issue
	
	Block a user