public void AccessDeniedView_Template_NullParameter_Test() { var template = new AccessDenied(null); var output = template.TransformText(); Assert.NotNull(output); Assert.NotEmpty(output); }
private void buttonLoginCancel_Click_1(object sender, EventArgs e) { AccessDenied acd = new AccessDenied(); acd.MdiParent = this.ParentForm; acd.Show(); this.Close(); }
public AccessDeniedException(AccessDenied reason) : base(reason.UserMessage) { if (reason == null) { throw new ArgumentNullException("reason"); } Reason = reason; }
public void AccessDeniedView_Template_Test() { var template = new AccessDenied(new SmartAppInfo { Id = ApplicationId }); var output = template.TransformText(); Assert.NotNull(output); Assert.NotEmpty(output); }
public IActionResult AccessDenied() { var model = new AccessDenied(); return(View(model)); }
private void TransformViewsAccountAccessDenied(SmartAppInfo manifest) { var template = new AccessDenied(manifest); _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText()); }