Ready to test new column
This commit is contained in:
committed by
Tucker Chase (CSC FI SPS MESLEO)
parent
123bbdb9fe
commit
1b22ffa439
@ -50,22 +50,25 @@ public class WorkflowDMOTests {
|
||||
try { throw new Exception(); } catch (Exception) { }
|
||||
}
|
||||
|
||||
private static void WorkflowDMO(ILogger? logger, AppSettings appSettings) {
|
||||
private static void WorkflowDMO(ILogger? logger, AppSettings appSettings, int issueID, string comments, int documentType) {
|
||||
#pragma warning disable IDE0059
|
||||
bool isLastStep;
|
||||
SetGlobalVars(logger, appSettings);
|
||||
WorkflowDMO workflowDMO = new();
|
||||
ECN_DMO ecnDMO = new();
|
||||
ECN ecn = ecnDMO.GetECN(issueID);
|
||||
WorkflowDMO workflowDMO = new();
|
||||
// string AddAdditionalApproval(int issueID, string userIDs, byte step, int documentType);
|
||||
// string AddEECNApproval(int ecnNumber, byte step, int documentType, string engUserIDs, string opUserIDs);
|
||||
// bool Approve(int issueID, byte step, string comments, out bool lastStep, int userID, int documentType, int workFlowNumber);
|
||||
bool check = workflowDMO.Approve(appSettings, issueID, ecn.CurrentStep, comments, out isLastStep, appSettings.UserId, documentType, ecn.WorkFlowNumber);
|
||||
// string DelegateDocumentApproval(int issueID, int delegateFromUser, int delegateToUser);
|
||||
// string GetApproversForCancelled_ExpiredTECNDocs(int ecnNumber);
|
||||
// string GetSubRoleItems(int issueID, int docType);
|
||||
// string GetSubRolesForPartsRequestNextStep(int prNumber);
|
||||
// WorkflowSteps GetWorkflowStep(int docTypeID, int wfNumber, int stepNumber);
|
||||
// string ReAssignApproval(int issueID, int assignedFromUser, int assignedToUser, byte step, int docType);
|
||||
// bool Recall(int issueID, byte step, string comments, int userID, int docType);
|
||||
// bool Reject(int issueID, byte step, string comments, int userID, int docType);
|
||||
// void RejectTECNExtension(int ecnNumber, byte step, string comments, int userID, int docType);
|
||||
// bool Recall(int issueID, byte step, string comments, appSettings.UserId, int docType);
|
||||
// bool Reject(int issueID, byte step, string comments, appSettings.UserId, int docType);
|
||||
// void RejectTECNExtension(int ecnNumber, byte step, string comments, appSettings.UserId, int docType);
|
||||
if (workflowDMO is null) { }
|
||||
#pragma warning restore IDE0059
|
||||
}
|
||||
@ -74,13 +77,14 @@ public class WorkflowDMOTests {
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void WorkflowDMOIsAttachedOnly() {
|
||||
[DataRow(82700, "comment", 3)]
|
||||
public void WorkflowDMOIsAttachedOnly(int issueID, string comments, int documentType) {
|
||||
_Logger?.LogInformation("Starting Web Application");
|
||||
IServiceProvider? serviceProvider = _WebApplicationFactory?.Services.CreateScope().ServiceProvider;
|
||||
AppSettings? appSettings = serviceProvider?.GetRequiredService<AppSettings>();
|
||||
Assert.IsTrue(appSettings is not null);
|
||||
if (System.Diagnostics.Debugger.IsAttached)
|
||||
WorkflowDMO(_Logger, appSettings);
|
||||
WorkflowDMO(_Logger, appSettings, issueID, comments, documentType);
|
||||
_Logger?.LogInformation("{TestName} completed", _TestContext?.TestName);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
Reference in New Issue
Block a user