public static void CreateTestModels(string projectDirectory, string authServerProjectName, IFileSystem fileSystem) { var classPath = ClassPathHelper.AuthServerSeederClassPath(projectDirectory, "TestUsers.cs", authServerProjectName); var fileText = GetTestUserText(classPath.ClassNamespace); Utilities.CreateFile(classPath, fileText, fileSystem); }
public static void CreateAuthServerStartup(string projectDirectory, string authServerProjectName, IFileSystem fileSystem) { var classPath = Utilities.GetStartupClassPath(projectDirectory, authServerProjectName); var testUsersClassPath = ClassPathHelper.AuthServerSeederClassPath(projectDirectory, "", authServerProjectName); var fileText = @$ "{DuendeDisclosure}namespace {classPath.ClassNamespace}; using Duende.IdentityServer; using Microsoft.AspNetCore.Builder; using {testUsersClassPath.ClassNamespace};