mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Second contribution from CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Cross-checked against the current microsoft/knowledge corpus before opening; several originally-drafted candidates were dropped as duplicates of existing files.
43 lines
1.1 KiB
AL
43 lines
1.1 KiB
AL
codeunit 50100 "BCPT Create Service Request" implements "BCPT Test Param. Provider"
|
|
{
|
|
SingleInstance = true;
|
|
|
|
trigger OnRun()
|
|
begin
|
|
if not IsInitialized then begin
|
|
InitTest();
|
|
IsInitialized := true;
|
|
end;
|
|
CreateServiceRequest(GlobalBCPTTestContext);
|
|
end;
|
|
|
|
var
|
|
GlobalBCPTTestContext: Codeunit "BCPT Test Context";
|
|
IsInitialized: Boolean;
|
|
|
|
local procedure InitTest()
|
|
begin
|
|
// Set up any required configuration
|
|
end;
|
|
|
|
local procedure CreateServiceRequest(var BCPTTestContext: Codeunit "BCPT Test Context")
|
|
begin
|
|
BCPTTestContext.StartScenario('Create Service Request Header');
|
|
// ... create the service request
|
|
BCPTTestContext.EndScenario('Create Service Request Header');
|
|
BCPTTestContext.UserWait();
|
|
|
|
BCPTTestContext.StartScenario('Add Service Request Line');
|
|
// ... add a line
|
|
BCPTTestContext.EndScenario('Add Service Request Line');
|
|
end;
|
|
|
|
procedure GetDefaultParameters(): Text[1000]
|
|
begin
|
|
exit('');
|
|
end;
|
|
|
|
procedure ValidateParameters(Parameters: Text[1000])
|
|
begin
|
|
end;
|
|
}
|