public JavaScriptTestFrameworkFeature(IProjectService projectService)
            : base(projectService)
        {
            this.mocha = new FeatureItem(
                "Mocha",
                "Mocha",
                "Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun. The Chai assertion framework and Sinon stub/mocking library are also included.",
                1,
                "/Boilerplate.Wizard;component/Assets/Mocha.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.mocha);

            this.jasmine = new FeatureItem(
                "Jasmine",
                "Jasmine",
                "Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun. The Sinon stub/mocking library is also included.",
                2,
                "/Boilerplate.Wizard;component/Assets/Jasmine.png",
                true);
            this.Items.Add(this.jasmine);

            this.none = new FeatureItem(
                "None",
                "None",
                "No JavaScript testing framework.",
                3);
            this.Items.Add(this.none);
        }
        public XmlFormatterFeature(IProjectService projectService, FeatureSet featureSet)
            : base(projectService)
        {
            this.none = new FeatureItem(
                "None",
                "None",
                "Removes the XML formatter.",
                featureSet == FeatureSet.Mvc6 ? 1 : 3)
            {
                IsSelected = featureSet == FeatureSet.Mvc6
            };
            this.Items.Add(none);

            this.dataContractSerializer = new FeatureItem(
                "DataContractSerializer",
                "DataContractSerializer",
                "Include an XML input and output formatter using the DataContractSerializer.",
                featureSet == FeatureSet.Mvc6 ? 2 : 1)
            {
                IsSelected = featureSet == FeatureSet.Mvc6Api
            };
            this.Items.Add(dataContractSerializer);

            this.xmlSerializer = new FeatureItem(
                "XmlSerializer",
                "XmlSerializer",
                "Include an XML input and output formatter using the XmlSerializer.",
                featureSet == FeatureSet.Mvc6 ? 3 : 2);
            this.Items.Add(xmlSerializer);
        }
Exemplo n.º 3
0
        public ReverseProxyWebServerFeature(IProjectService projectService)
            : base(projectService)
        {
            this.iis = new FeatureItem(
                "IIS",
                "Internet Information Services (IIS) or Azure",
                "Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. Select this option if you are deploying your site to Azure web apps.",
                2,
                "/Boilerplate.FeatureSelection;component/Assets/IIS.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.iis);

            this.nginx = new FeatureItem(
                "Nginx",
                "Nginx",
                "Nginx is a free, open-source, cross-platform high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. It does have a Windows version but it's not very fast and IIS is better on that platform.",
                3,
                "/Boilerplate.FeatureSelection;component/Assets/Nginx.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.nginx);
        }
Exemplo n.º 4
0
        public JavaScriptTestFrameworkFeature(IProjectService projectService)
            : base(projectService)
        {
            this.mocha = new FeatureItem(
                "Mocha",
                "Mocha",
                "Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun. The Chai assertion framework and Sinon stub/mocking library are also included.",
                1,
                "/Boilerplate.Wizard;component/Assets/Mocha.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.mocha);

            this.jasmine = new FeatureItem(
                "Jasmine",
                "Jasmine",
                "Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun. The Sinon stub/mocking library is also included.",
                2,
                "/Boilerplate.Wizard;component/Assets/Jasmine.png",
                true);
            this.Items.Add(this.jasmine);

            this.none = new FeatureItem(
                "None",
                "None",
                "No JavaScript testing framework.",
                3);
            this.Items.Add(this.none);
        }
Exemplo n.º 5
0
        public TargetFrameworkFeature(IProjectService projectService)
            : base(projectService)
        {
            this.netCore = new FeatureItem(
                "NetCore",
                ".NET Core",
                "Target the .NET Core framework.",
                1,
                "/Boilerplate.FeatureSelection;component/Assets/NetCore.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.netCore);

            this.net461 = new FeatureItem(
                "NetFramework",
                ".NET Framework 4.6.1",
                "Target the full .NET Framework 4.6.1.",
                2,
                "/Boilerplate.FeatureSelection;component/Assets/NetFramework.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.net461);
        }
        public PrimaryWebServerFeature(IProjectService projectService)
            : base(projectService)
        {
            this.kestrel = new FeatureItem(
                "Kestrel",
                "Kestrel",
                "A web server for ASP.NET Core. Not intended to be internet facing as it has not been security tested. IIS or Nginx should be placed in front as reverse proxy web servers.",
                1,
                "/Boilerplate.FeatureSelection;component/Assets/Kestrel.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.kestrel);

            this.webListener = new FeatureItem(
                "WebListener",
                "Web Listener",
                "WebListener is a Windows only web server. It gives you the option to take advantage of Windows specific features, like Windows authentication, port sharing, HTTPS with SNI, HTTP/2 over TLS (Windows 10), direct file transmission, and response caching WebSockets (Windows 8).",
                2,
                "/Boilerplate.FeatureSelection;component/Assets/WebListener.png")
            {
                IsSelected = false
            };
            this.Items.Add(this.webListener);
        }
        public JsonFormatterFeature(IProjectService projectService)
            : base(projectService)
        {
            this.camelCase = new FeatureItem(
                "CamelCase",
                "Camel-Case (e.g. camelCase)",
                "The first character of the variable starts with a lower-case. Each word in the variable name after that starts with an upper-case character.",
                1)
            {
                IsSelected = true
            };
            this.Items.Add(this.camelCase);

            this.titleCase = new FeatureItem(
                "TitleCase",
                "Title Case (e.g. TitleCase)",
                "Each word in the variable name starts with an upper-case character.",
                2);
            this.Items.Add(this.titleCase);

            this.none = new FeatureItem(
                "None",
                "None",
                "Removes the JSON formatter.",
                3);
            this.Items.Add(none);
        }
        public FrontEndFrameworkFeature(IProjectService projectService)
            : base(projectService)
        {
            this.bootstrap = new FeatureItem(
                "Bootstrap",
                "Bootstrap",
                "Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.",
                1,
                "/Boilerplate.Wizard;component/Assets/Bootstrap.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.bootstrap);

            this.zurbFoundation = new FeatureItem(
                "ZurbFoundation",
                "Zurb Foundation",
                "The most advanced responsive front-end framework in the world.",
                2,
                "/Boilerplate.Wizard;component/Assets/Zurb Foundation.png",
                true);
            this.Items.Add(this.zurbFoundation);

            this.semanticUI = new FeatureItem(
                "SemanticUI",
                "Semantic UI",
                "Semantic is a development framework that helps create beautiful, responsive layouts using human-friendly HTML.",
                3,
                "/Boilerplate.Wizard;component/Assets/Semantic UI.png",
                true);
            this.Items.Add(this.semanticUI);
        }
        public FrontEndFrameworkFeature(IProjectService projectService)
            : base(projectService)
        {
            this.bootstrap = new FeatureItem(
                "Bootstrap",
                "Bootstrap",
                "Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.",
                1,
                "/Boilerplate.Wizard;component/Assets/Bootstrap.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.bootstrap);

            this.zurbFoundation = new FeatureItem(
                "ZurbFoundation",
                "Zurb Foundation",
                "The most advanced responsive front-end framework in the world.",
                2,
                "/Boilerplate.Wizard;component/Assets/Zurb Foundation.png",
                true);
            this.Items.Add(this.zurbFoundation);

            this.semanticUI = new FeatureItem(
                "SemanticUI",
                "Semantic UI",
                "Semantic is a development framework that helps create beautiful, responsive layouts using human-friendly HTML.",
                3,
                "/Boilerplate.Wizard;component/Assets/Semantic UI.png",
                true);
            this.Items.Add(this.semanticUI);
        }
Exemplo n.º 10
0
        public XmlFormatterFeature(IProjectService projectService)
            : base(projectService)
        {
            this.none = new FeatureItem(
                "None",
                "None",
                "No Xml Formatter",
                1)
            {
                IsSelected = true
            };
            this.Items.Add(this.none);

            this.dataContractSerializer = new FeatureItem(
                "DataContractSerializer",
                "DataContractSerializer",
                "Add the DataContractSerializer based input and output formatters.",
                2);
            this.Items.Add(this.dataContractSerializer);

            this.xmlSerializer = new FeatureItem(
                "XmlSerializer",
                "XmlSerializer",
                "Add the XmlSerializer based input and output formatters.",
                3);
            this.Items.Add(this.xmlSerializer);

            this.both = new FeatureItem(
                "Both",
                "Both",
                "Add the DataContractSerializer and XmlSerializer based input and output formatters.",
                4);
            this.Items.Add(this.both);
        }
        public BsonFormatterFeature(IProjectService projectService, FeatureSet featureSet)
            : base(projectService)
        {
            this.none = new FeatureItem(
                "None",
                "None",
                "Removes the BSON formatter.",
                featureSet == FeatureSet.Mvc6 ? 1 : 3)
            {
                IsSelected = featureSet == FeatureSet.Mvc6
            };
            this.Items.Add(this.none);

            this.camelCase = new FeatureItem(
                "CamelCase",
                "Camel-Case (e.g. camelCase)",
                "The first character of the variable starts with a lower-case. Each word in the variable name after that starts with an upper-case character.",
                featureSet == FeatureSet.Mvc6 ? 2 : 1)
            {
                IsSelected = featureSet == FeatureSet.Mvc6Api
            };
            this.Items.Add(this.camelCase);

            this.titleCase = new FeatureItem(
                "TitleCase",
                "Title Case (e.g. TitleCase)",
                "Each word in the variable name starts with an upper-case character.",
                featureSet == FeatureSet.Mvc6 ? 3 : 2);
            this.Items.Add(this.titleCase);
        }
        public JsonSerializerSettingsFeature(IProjectService projectService)
            : base(projectService)
        {
            this.camelCase = new FeatureItem(
                "CamelCase",
                "Camel-Case (e.g. camelCase)",
                "The first character of the variable starts with a lower-case. Each word in the variable name after that starts with an upper-case character.",
                1)
            {
                IsSelected = true
            };
            this.Items.Add(this.camelCase);

            this.titleCase = new FeatureItem(
                "TitleCase",
                "Title-Case (e.g. TitleCase)",
                "Each word in the variable name starts with an upper-case character.",
                2);
            this.Items.Add(this.titleCase);
        }
Exemplo n.º 13
0
        public JsonSerializerSettingsFeature(IProjectService projectService)
            : base(projectService)
        {
            this.camelCase = new FeatureItem(
                "CamelCase",
                "Camel-Case (e.g. camelCase)",
                "The first character of the variable starts with a lower-case. Each word in the variable name after that starts with an upper-case character.",
                1)
            {
                IsSelected = true
            };
            this.Items.Add(this.camelCase);

            this.titleCase = new FeatureItem(
                "TitleCase",
                "Title-Case (e.g. TitleCase)",
                "Each word in the variable name starts with an upper-case character.",
                2);
            this.Items.Add(this.titleCase);
        }
        public XmlFormatterFeature(IProjectService projectService, FeatureSet featureSet)
            : base(projectService)
        {
            this.featureSet = featureSet;

            this.none = new FeatureItem(
                "None", 
                "None", 
                "No Xml Formatter", 
                1)
            {
                IsSelected = featureSet == FeatureSet.Mvc6
            };
            this.Items.Add(this.none);

            this.dataContractSerializer = new FeatureItem(
                "DataContractSerializer",
                "DataContractSerializer",
                "Add the DataContractSerializer based input and output formatters.",
                2)
            {
                IsSelected = featureSet == FeatureSet.Mvc6Api
            };
            this.Items.Add(this.dataContractSerializer);

            this.xmlSerializer = new FeatureItem(
                "XmlSerializer",
                "XmlSerializer",
                "Add the XmlSerializer based input and output formatters.",
                3);
            this.Items.Add(this.xmlSerializer);

            this.both = new FeatureItem(
                "Both",
                "Both",
                "Add the DataContractSerializer and XmlSerializer based input and output formatters.",
                4);
            this.Items.Add(this.both);
        }
Exemplo n.º 15
0
        public WebServerFeature(IProjectService projectService)
            : base(projectService)
        {
            this.kestrel = new FeatureItem(
                "Kestrel",
                "Kestrel",
                "A web server for ASP.NET Core. Not intended to be internet facing as it has not been security tested. IIS and Nginx require the Kestrel webs server, so this option is enabled by default.",
                1,
                "/Boilerplate.FeatureSelection;component/Assets/Kestrel.png")
            {
                IsEnabled  = false,
                IsSelected = true
            };
            this.Items.Add(this.kestrel);

            this.iis = new FeatureItem(
                "IIS",
                "Internet Information Services (IIS) or Azure",
                "Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. Select this option if you are deploying your site to Azure web apps.",
                2,
                "/Boilerplate.FeatureSelection;component/Assets/IIS.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.iis);

            this.nginx = new FeatureItem(
                "Nginx",
                "Nginx",
                "Nginx is a free, open-source, cross-platform high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. It does have a Windows version but it's not very fast and IIS is better on that platform.",
                3,
                "/Boilerplate.FeatureSelection;component/Assets/Nginx.png")
            {
                IsSelected = true
            };
            this.Items.Add(this.nginx);
        }