Removed PdfViewController, HtmlViewRenderer and FakeView to be replaced with ViewEngineResult Render method
Added HttpException class for missing HttpException for net8 Wrapped HttpContext.Session, GetJsonResult, IsAjaxRequest and GetUserIdentityName in controllers for net8 Added AuthenticationService to test Fab2ApprovalMKLink code for net8 Compile conditionally flags to debug in dotnet core
This commit is contained in:
@ -52,7 +52,7 @@ public class EngChangeNoticeDMOTests {
|
||||
try { throw new Exception(); } catch (Exception) { }
|
||||
}
|
||||
|
||||
private static void EngChangeNoticeDMO(ILogger? logger, AppSettings appSettings) {
|
||||
private static void EngChangeNoticeDMO(ILogger? logger, AppSettings appSettings, int ecnNumber) {
|
||||
#pragma warning disable IDE0059
|
||||
SetGlobalVars(logger, appSettings);
|
||||
ECN_DMO ecnDMO = new();
|
||||
@ -84,6 +84,9 @@ public class EngChangeNoticeDMOTests {
|
||||
// int SubmitTECNExtensionDocument(int issueID, appSettings.UserId, int documentType, DateTime extensionDate);
|
||||
// void TECNExtensionLog(int ecnNumber, DateTime extensionDate);
|
||||
// void UpdateECNType(int ecnNumber, string ecnType);
|
||||
ECNPdf ecn = ecnDMO.GetECNPdf(ecnNumber);
|
||||
string categoryId = ecnDMO.GetCategoryID(ecn);
|
||||
string trainingNotificationTo = ecnDMO.GetTrainingNotificationTo(ecn, new TrainingDMO());
|
||||
if (ecnDMO is null) { }
|
||||
#pragma warning restore IDE0059
|
||||
}
|
||||
@ -92,13 +95,14 @@ public class EngChangeNoticeDMOTests {
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void EngChangeNoticeDMOIsAttachedOnly() {
|
||||
[DataRow(82689)]
|
||||
public void EngChangeNoticeDMOIsAttachedOnly(int ecnNumber) {
|
||||
_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)
|
||||
EngChangeNoticeDMO(_Logger, appSettings);
|
||||
EngChangeNoticeDMO(_Logger, appSettings, ecnNumber);
|
||||
_Logger?.LogInformation("{TestName} completed", _TestContext?.TestName);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
Reference in New Issue
Block a user