示例#1
0
        public void AutoUnitTest()
        {
            ServiceSolutionCodingBotOptions options = new ServiceSolutionCodingBotOptions
            {
                UseLowerCamelNamingForJsonSeriliazation = true,
                SolutionName = "BeyovaCodingBotExample",
                NameSpace    = "Beyova.CodingBot.Example"
            };

            var package = ServiceSolutionCodingBot.Generate(options);

            package.GenerateSqlPublishScript();

            var storageContainer = new FileContainer(Path.Combine(EnvironmentCore.ApplicationBaseDirectory, "Output"));

            package.PutIntoStorageContainer(storageContainer);

            storageContainer.WriteToDestination();
        }