Ejemplo n.º 1
0
        public void AccessDeniedView_Template_NullParameter_Test()
        {
            var template = new AccessDenied(null);
            var output   = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
        }
Ejemplo n.º 2
0
        private void buttonLoginCancel_Click_1(object sender, EventArgs e)
        {
            AccessDenied acd = new AccessDenied();

            acd.MdiParent = this.ParentForm;
            acd.Show();
            this.Close();
        }
Ejemplo n.º 3
0
 public AccessDeniedException(AccessDenied reason)
     : base(reason.UserMessage)
 {
     if (reason == null)
     {
         throw new ArgumentNullException("reason");
     }
     Reason = reason;
 }
Ejemplo n.º 4
0
        public void AccessDeniedView_Template_Test()
        {
            var template = new AccessDenied(new SmartAppInfo {
                Id = ApplicationId
            });
            var output = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
        }
Ejemplo n.º 5
0
        public IActionResult AccessDenied()
        {
            var model = new AccessDenied();

            return(View(model));
        }
Ejemplo n.º 6
0
        private void TransformViewsAccountAccessDenied(SmartAppInfo manifest)
        {
            var template = new AccessDenied(manifest);

            _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText());
        }