Permalink
Browse files

Rename MvcController to lower case

  • Loading branch information...
1 parent 5de509c commit 9fc7fe41c6d9f1a66caf0b9fb1eb535eb60452bd @peterblazejewicz peterblazejewicz committed Jul 24, 2016
View
@@ -114,7 +114,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:jsonschema](#jsonschema)
* [aspnet:jsx](#jsx)
* [aspnet:middleware](#middleware)
-* [aspnet:MvcController](#mvccontroller)
+* [aspnet:mvccontroller](#mvccontroller)
* [aspnet:MvcView](#mvcview)
* [aspnet:nuget](#nuget)
* [aspnet:PackageJson](#packagejson)
@@ -418,14 +418,14 @@ Produces `filename.cs`
[Return to top](#top)
-### MvcController
+### mvccontroller
Creates a new ASP.NET Core MvcController class
Example:
```
-yo aspnet:MvcController ContactController
+yo aspnet:mvccontroller ContactController
```
Produces `/ContactController.cs`
View
@@ -23,7 +23,7 @@ Subgenerators:
yo aspnet:json [options] <name>
yo aspnet:jsonschema [options] <name>
yo aspnet:middleware [options] <name>
- yo aspnet:MvcController [options] <name>
+ yo aspnet:mvccontroller [options] <name>
yo aspnet:MvcView [options] <name>
yo aspnet:nuget [options]
yo aspnet:PackageJson [options]
@@ -2,7 +2,7 @@ Description:
Creates a new MvcController
Example:
- yo aspnet:MvcController filename
+ yo aspnet:mvccontroller filename
This will create:
filename.cs
@@ -13,7 +13,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
var extension = '.cs';
this.generateTemplateFile(
- 'MvcController.cs',
+ 'mvccontroller.cs',
extension, {
namespace: this.namespace(),
classname: this.classNameWithoutExtension(extension)
File renamed without changes.
View
@@ -497,26 +497,26 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:MvcController without extension', function() {
+ describe('aspnet:mvccontroller without extension', function() {
var arg = 'file';
var filename = 'file.cs';
- util.goCreateWithArgs('MvcController', [arg]);
+ util.goCreateWithArgs('mvccontroller', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:MvcController with extension', function() {
+ describe('aspnet:mvccontroller with extension', function() {
var filename = 'file.cs';
- util.goCreateWithArgs('MvcController', [filename]);
+ util.goCreateWithArgs('mvccontroller', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:MvcController in cwd of project.json', function() {
+ describe('aspnet:mvccontroller in cwd of project.json', function() {
var arg = 'file';
var filename = 'file.cs';
var dir = util.makeTempDir();
util.goCreateApplication('web', 'webTest', dir);
- util.goCreateWithArgs('MvcController', [arg], path.join(dir, 'webTest'));
+ util.goCreateWithArgs('mvccontroller', [arg], path.join(dir, 'webTest'));
util.fileCheck('should create Controllers/' + filename + ' file', filename);
});

0 comments on commit 9fc7fe4

Please sign in to comment.