Exemple #1
0
        public void AccessDeniedView_Template_NullParameter_Test()
        {
            var template = new AccessDenied(null);
            var output   = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
        }
Exemple #2
0
        public void AccessDeniedView_Template_Test()
        {
            var template = new AccessDenied(new SmartAppInfo {
                Id = ApplicationId
            });
            var output = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
        }
Exemple #3
0
        private void TransformViewsAccountAccessDenied(SmartAppInfo manifest)
        {
            var template = new AccessDenied(manifest);

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