Esempio n. 1
0
        public void CreateUnitCode()
        {
            var path =
                Path.GetDirectoryName(
                    Path.GetDirectoryName(
                        Path.GetDirectoryName(
                            System.Environment.CurrentDirectory)));
            ApiDiscover discover = new ApiDiscover();

            discover.Discover(this.GetType().Assembly);
            discover.NUnitCode(IOHelper.CheckPath(path, "AutoCode"));
        }
Esempio n. 2
0
        public void CreateMarkdown()
        {
            ApiDiscover discover = new ApiDiscover();

            discover.Discover(typeof(NetEventControler).Assembly);

            var path = IOHelper.CheckPath(Environment.CurrentDirectory, "MarkDown");

            var extend = new ApiMarkDown
            {
                ServiceInfos = discover.ServiceInfos
            };

            extend.MarkDown(path);
        }
Esempio n. 3
0
        public void CreateApiSqlCode()
        {
            var path =
                Path.GetDirectoryName(
                    Path.GetDirectoryName(
                        Path.GetDirectoryName(
                            System.Environment.CurrentDirectory)));
            ApiDiscover discover = new ApiDiscover();

            discover.Discover(typeof(NetEventControler).Assembly);
            var extend = new ApiSqlCode
            {
                ServiceInfos = discover.ServiceInfos
            };

            extend.ApiSql(IOHelper.CheckPath(path, "Sql"));
        }
Esempio n. 4
0
        public void CreateUnitCode()
        {
            var path =
                Path.GetDirectoryName(
                    Path.GetDirectoryName(
                        Path.GetDirectoryName(
                            System.Environment.CurrentDirectory)));
            ApiDiscover discover = new ApiDiscover();

            discover.Discover(GetType().Assembly);
            var extend = new ApiUnitTestCode
            {
                ServiceInfos = discover.ServiceInfos
            };

            extend.NUnitCode(IOHelper.CheckPath(path, "AutoCode"));
        }
Esempio n. 5
0
 /// <summary>
 ///     发现
 /// </summary>
 public static void Discove(params Assembly[] assemblies) => ApiDiscover.FindApies(assemblies);
Esempio n. 6
0
 /// <summary>
 ///     发现
 /// </summary>
 public static void Discove() => ApiDiscover.FindAppDomain();
Esempio n. 7
0
 /// <summary>
 ///     发现
 /// </summary>
 public static void Discove(Assembly assembly) => ApiDiscover.FindApies(assembly);
Esempio n. 8
0
 public void FindAppDomain()
 {
     ApiDiscover.FindAppDomain();
 }