Exemplo n.º 1
0
        public static void CreateAttribute(string projectDirectory, string authServerProjectName, IFileSystem fileSystem)
        {
            var classPath = ClassPathHelper.AuthServerAttributesClassPath(projectDirectory, "SecurityHeadersAttribute.cs", authServerProjectName);
            var fileText  = GetTestUserText(classPath.ClassNamespace);

            Utilities.CreateFile(classPath, fileText, fileSystem);
        }
        public static string GetControllerText(string classNamespace, string projectDirectory, string authServerProjectName)
        {
            var modelsClassPath     = ClassPathHelper.AuthServerModelsClassPath(projectDirectory, "", authServerProjectName);
            var viewModelsClassPath = ClassPathHelper.AuthServerViewModelsClassPath(projectDirectory, "", authServerProjectName);
            var extClassPath        = ClassPathHelper.AuthServerExtensionsClassPath(projectDirectory, "Extensions.cs", authServerProjectName);
            var attrClassPath       = ClassPathHelper.AuthServerAttributesClassPath(projectDirectory, "", authServerProjectName);

            return(@$ "{DuendeDisclosure}// Copyright (c) Duende Software. All rights reserved.