Esempio n. 1
0
        public void RoleDetails_Template_NullParameter_Test()
        {
            var template = new RoleDetails(null);
            var output   = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
        }
Esempio n. 2
0
        public void RoleDetails_Template_Test()
        {
            var template = new RoleDetails(new SmartAppInfo {
                Id = ApplicationId
            });
            var output = template.TransformText();

            Assert.NotNull(output);
            Assert.NotEmpty(output);
            Assert.Contains("@model Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole", output);
        }
Esempio n. 3
0
        private void TransformViewsRoleAdminRoleDetails(SmartAppInfo manifest)
        {
            var template = new RoleDetails(manifest);

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