예제 #1
0
 protected override void AddFiles()
 {
     Console.Write("Adding the endpoint class...");
     Folder.GetFile($"{Context.EndpointName}.cs").WriteAllText(EndpointClassProgrammer.Generate());
     Console.WriteLine("Done");
     Console.Write("Adding ReamMe.txt file ...");
     Folder.GetFile("README.txt").WriteAllText(ReadmeFileGenerator.Generate());
     Console.WriteLine("Done");
 }
 protected override void AddFiles()
 {
     Console.Write("Adding the command class...");
     Folder.GetFile($"{Context.CommandType.Name}.cs").WriteAllText(EventBusCommandClassProgrammer.Generate());
     Console.WriteLine("Done");
     Console.Write("Adding ReamMe.txt file ...");
     Folder.GetFile("README.txt").WriteAllText(ReadmeFileGenerator.Generate());
     Console.WriteLine("Done");
 }
예제 #3
0
 protected override void AddFiles()
 {
     Console.Write("Adding the endpoint class...");
     Folder.GetFile($"{Context.EndpointName}.cs").WriteAllText(EndpointClassProgrammer.Generate());
     Console.WriteLine("Done");
     // Console.Write("Adding the endpoint class mock configuration...");
     // MockFolder.GetFile($"{Context.ControllerName}.Mock.cs").WriteAllText(EndPointClassProgrammer.GenerateMock());
     Console.WriteLine("Done");
     Console.Write("Adding ReamMe.txt file ...");
     Folder.GetFile("README.txt").WriteAllText(ReadmeFileGenerator.Generate());
     Console.WriteLine("Done");
 }
예제 #4
0
        protected override void AddFiles()
        {
            Console.Write("Adding the proxy class...");
            Folder.GetFile($"{Context.ControllerName}.cs").WriteAllText(ProxyClassProgrammer.Generate());
            Console.WriteLine("Done");
            Console.Write("Adding the proxy class mock configuration...");
            MockFolder.GetFile($"{Context.ControllerName}.Mock.cs").WriteAllText(ProxyClassProgrammer.GenerateMock());
            Console.WriteLine("Done");
            Console.Write("Adding ReamMe.txt file ...");
            Folder.GetFile("README.txt").WriteAllText(ReadmeFileGenerator.Generate());
            Console.WriteLine("Done");

            GenerateEnums();
            GenerateDtoClasses();
            GenerateDataProviderClasses();
            GenerateMockConfiguration();
        }