Exemple #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"));
        }
Exemple #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);
        }
Exemple #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"));
        }
Exemple #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"));
        }