+ Request ID: @Model.RequestId
+
+ Swapping to the Development environment displays detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
diff --git a/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Error.cshtml.cs b/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Error.cshtml.cs new file mode 100644 index 0000000..0222a66 --- /dev/null +++ b/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Error.cshtml.cs @@ -0,0 +1,27 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; +using System.Diagnostics; + +namespace MyNUnitWeb.Pages +{ + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + [IgnoreAntiforgeryToken] + public class ErrorModel : PageModel + { + public string? RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + private readonly ILoggerLearn about building Web apps with ASP.NET Core.
+| All: | +Passed: | +Failed: | +Ignored: | +
|---|---|---|---|
| @lol.Count() | +@lol.Where(i => i.Status == MyNUnit.TestInfo.TestStatus.Passed).Count() | +@lol.Where(i => i.Status == MyNUnit.TestInfo.TestStatus.Failed).Count() | +@lol.Where(i => i.Status == MyNUnit.TestInfo.TestStatus.Skipped).Count() | +
| Name: | +Status: | +Execution time: | +Ignore reason: | +
|---|---|---|---|
| @j.Name | +@j.Status | +@j.Time | +@j.IgnoreReason | +
Use this page to detail your site's privacy policy.
diff --git a/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Privacy.cshtml.cs b/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Privacy.cshtml.cs new file mode 100644 index 0000000..97fed7d --- /dev/null +++ b/MyWebNUnit/MyNUnitWeb/MyNUnitWeb/Pages/Privacy.cshtml.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace MyNUnitWeb.Pages +{ + public class PrivacyModel : PageModel + { + private readonly ILogger