|
|
@@ -1,7 +1,7 @@
|
|
|
|
// ------------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------------
|
|
|
|
// <auto-generated>
|
|
|
|
// <auto-generated>
|
|
|
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
|
|
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
|
|
|
// SpecFlow Version:1.4.0.0
|
|
|
|
// SpecFlow Version:1.3.2.0
|
|
|
|
// Runtime Version:4.0.30319.1
|
|
|
|
// Runtime Version:4.0.30319.1
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
|
|
|
using TechTalk.SpecFlow;
|
|
|
|
using TechTalk.SpecFlow;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
|
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
|
|
[NUnit.Framework.TestFixtureAttribute()]
|
|
|
|
[NUnit.Framework.TestFixtureAttribute()]
|
|
|
|
[NUnit.Framework.DescriptionAttribute("Blog")]
|
|
|
|
[NUnit.Framework.DescriptionAttribute("Blog")]
|
|
|
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Blog", "In order to add blogs to my site\r\nAs an author\r\nI want to create blogs and create" +
|
|
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Blog", "In order to add blogs to my site\r\nAs an author\r\nI want to create blogs and create" +
|
|
|
|
", publish and edit blog posts", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
|
|
|
", publish and edit blog posts", ((string[])(null)));
|
|
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@@ -61,11 +61,11 @@ namespace Orchard.Specs
|
|
|
|
#line 6
|
|
|
|
#line 6
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 7
|
|
|
|
#line 7
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 8
|
|
|
|
#line 8
|
|
|
|
testRunner.When("I go to \"admin\"");
|
|
|
|
testRunner.When("I go to \"admin\"");
|
|
|
|
#line 9
|
|
|
|
#line 9
|
|
|
|
testRunner.Then("I should see \"<a href=\"/Admin/Blogs/Create\">Blogs</a>\"");
|
|
|
|
testRunner.Then("I should see \"<a href=\"/Admin/Blogs/Create\">Blogs</a>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -78,9 +78,9 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 11
|
|
|
|
#line 11
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 12
|
|
|
|
#line 12
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 13
|
|
|
|
#line 13
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -89,15 +89,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 14
|
|
|
|
#line 14
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table1);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table1);
|
|
|
|
#line 17
|
|
|
|
#line 17
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 18
|
|
|
|
#line 18
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 19
|
|
|
|
#line 19
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 20
|
|
|
|
#line 20
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -109,21 +109,21 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there."});
|
|
|
|
"Hi there."});
|
|
|
|
#line 21
|
|
|
|
#line 21
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table2);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table2);
|
|
|
|
#line 25
|
|
|
|
#line 25
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 26
|
|
|
|
#line 26
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
#line 27
|
|
|
|
#line 27
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
#line 28
|
|
|
|
#line 28
|
|
|
|
testRunner.And("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.And("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 29
|
|
|
|
#line 29
|
|
|
|
testRunner.When("I go to \"my-blog/my-post\"");
|
|
|
|
testRunner.When("I go to \"my-blog/my-post\"");
|
|
|
|
#line 30
|
|
|
|
#line 30
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 31
|
|
|
|
#line 31
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -138,9 +138,9 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 33
|
|
|
|
#line 33
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 34
|
|
|
|
#line 34
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 35
|
|
|
|
#line 35
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -149,15 +149,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 36
|
|
|
|
#line 36
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table3);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table3);
|
|
|
|
#line 39
|
|
|
|
#line 39
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 40
|
|
|
|
#line 40
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 41
|
|
|
|
#line 41
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 42
|
|
|
|
#line 42
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -169,21 +169,21 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there."});
|
|
|
|
"Hi there."});
|
|
|
|
#line 43
|
|
|
|
#line 43
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table4);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table4);
|
|
|
|
#line 47
|
|
|
|
#line 47
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 48
|
|
|
|
#line 48
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
#line 49
|
|
|
|
#line 49
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 50
|
|
|
|
#line 50
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
#line 51
|
|
|
|
#line 51
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
#line 52
|
|
|
|
#line 52
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 53
|
|
|
|
#line 53
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -195,21 +195,21 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there, again."});
|
|
|
|
"Hi there, again."});
|
|
|
|
#line 54
|
|
|
|
#line 54
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table5);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table5);
|
|
|
|
#line 58
|
|
|
|
#line 58
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 59
|
|
|
|
#line 59
|
|
|
|
testRunner.And("I go to \"my-blog/my-post-2\"");
|
|
|
|
testRunner.And("I go to \"my-blog/my-post-2\"");
|
|
|
|
#line 60
|
|
|
|
#line 60
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 61
|
|
|
|
#line 61
|
|
|
|
testRunner.And("I should see \"Hi there, again.\"");
|
|
|
|
testRunner.And("I should see \"Hi there, again.\"");
|
|
|
|
#line 62
|
|
|
|
#line 62
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
#line 63
|
|
|
|
#line 63
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 64
|
|
|
|
#line 64
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -224,15 +224,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Are you still there?"});
|
|
|
|
"Are you still there?"});
|
|
|
|
#line 65
|
|
|
|
#line 65
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table6);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table6);
|
|
|
|
#line 70
|
|
|
|
#line 70
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 71
|
|
|
|
#line 71
|
|
|
|
testRunner.And("I go to \"my-blog/my-post-3\"");
|
|
|
|
testRunner.And("I go to \"my-blog/my-post-3\"");
|
|
|
|
#line 72
|
|
|
|
#line 72
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 73
|
|
|
|
#line 73
|
|
|
|
testRunner.And("I should see \"Are you still there?\"");
|
|
|
|
testRunner.And("I should see \"Are you still there?\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -247,9 +247,9 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 75
|
|
|
|
#line 75
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 76
|
|
|
|
#line 76
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 77
|
|
|
|
#line 77
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -258,19 +258,19 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 78
|
|
|
|
#line 78
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table7);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table7);
|
|
|
|
#line 81
|
|
|
|
#line 81
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 82
|
|
|
|
#line 82
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
#line 83
|
|
|
|
#line 83
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
#line 84
|
|
|
|
#line 84
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
#line 85
|
|
|
|
#line 85
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 86
|
|
|
|
#line 86
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -282,21 +282,21 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there."});
|
|
|
|
"Hi there."});
|
|
|
|
#line 87
|
|
|
|
#line 87
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table8);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table8);
|
|
|
|
#line 91
|
|
|
|
#line 91
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 92
|
|
|
|
#line 92
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
#line 93
|
|
|
|
#line 93
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 94
|
|
|
|
#line 94
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
#line 95
|
|
|
|
#line 95
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs\"");
|
|
|
|
#line 96
|
|
|
|
#line 96
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 97
|
|
|
|
#line 97
|
|
|
|
testRunner.And("I follow \"Blog Properties\"");
|
|
|
|
testRunner.And("I follow \"Blog Properties\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -305,19 +305,19 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Slug",
|
|
|
|
"Routable.Slug",
|
|
|
|
"my-other-blog"});
|
|
|
|
"my-other-blog"});
|
|
|
|
#line 98
|
|
|
|
#line 98
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table9);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table9);
|
|
|
|
#line 101
|
|
|
|
#line 101
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 102
|
|
|
|
#line 102
|
|
|
|
testRunner.And("I go to \"my-other-blog\"");
|
|
|
|
testRunner.And("I go to \"my-other-blog\"");
|
|
|
|
#line 103
|
|
|
|
#line 103
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
|
|
|
#line 104
|
|
|
|
#line 104
|
|
|
|
testRunner.When("I go to \"my-other-blog/my-post\"");
|
|
|
|
testRunner.When("I go to \"my-other-blog/my-post\"");
|
|
|
|
#line 105
|
|
|
|
#line 105
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
|
|
|
#line 106
|
|
|
|
#line 106
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
testRunner.And("I should see \"Hi there.\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -330,9 +330,9 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 108
|
|
|
|
#line 108
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 109
|
|
|
|
#line 109
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 110
|
|
|
|
#line 110
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -341,15 +341,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 111
|
|
|
|
#line 111
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table10);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table10);
|
|
|
|
#line 114
|
|
|
|
#line 114
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 115
|
|
|
|
#line 115
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 116
|
|
|
|
#line 116
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 117
|
|
|
|
#line 117
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -361,15 +361,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there."});
|
|
|
|
"Hi there."});
|
|
|
|
#line 118
|
|
|
|
#line 118
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table11);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table11);
|
|
|
|
#line 122
|
|
|
|
#line 122
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 123
|
|
|
|
#line 123
|
|
|
|
testRunner.And("I am redirected");
|
|
|
|
testRunner.And("I am redirected");
|
|
|
|
#line 124
|
|
|
|
#line 124
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
testRunner.And("I go to \"my-blog/my-post\"");
|
|
|
|
#line 125
|
|
|
|
#line 125
|
|
|
|
testRunner.Then("I should see \"<link rel=\"alternate\" type=\"application/rss\\+xml\" title=\"My Blog\" h" +
|
|
|
|
testRunner.Then("I should see \"<link rel=\"alternate\" type=\"application/rss\\+xml\" title=\"My Blog\" h" +
|
|
|
|
"ref=\"/rss\\?containerid=\\d+\" />\"");
|
|
|
|
"ref=\"/rss\\?containerid=\\d+\" />\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
@@ -385,13 +385,13 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 128
|
|
|
|
#line 128
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 129
|
|
|
|
#line 129
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 130
|
|
|
|
#line 130
|
|
|
|
testRunner.And("I have enabled \"XmlRpc\"");
|
|
|
|
testRunner.And("I have enabled \"XmlRpc\"");
|
|
|
|
#line 131
|
|
|
|
#line 131
|
|
|
|
testRunner.And("I have enabled \"Orchard.Blogs.RemotePublishing\"");
|
|
|
|
testRunner.And("I have enabled \"Orchard.Blogs.RemotePublishing\"");
|
|
|
|
#line 132
|
|
|
|
#line 132
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -400,23 +400,23 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 133
|
|
|
|
#line 133
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table12);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table12);
|
|
|
|
#line 136
|
|
|
|
#line 136
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 137
|
|
|
|
#line 137
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
testRunner.And("I go to \"my-blog\"");
|
|
|
|
#line 138
|
|
|
|
#line 138
|
|
|
|
testRunner.Then("I should see \"<link href=\"[^\"]*/XmlRpc/LiveWriter/Manifest\" rel=\"wlwmanifest\" typ" +
|
|
|
|
testRunner.Then("I should see \"<link href=\"[^\"]*/XmlRpc/LiveWriter/Manifest\" rel=\"wlwmanifest\" typ" +
|
|
|
|
"e=\"application/wlwmanifest\\+xml\" />\"");
|
|
|
|
"e=\"application/wlwmanifest\\+xml\" />\"");
|
|
|
|
#line 139
|
|
|
|
#line 139
|
|
|
|
testRunner.When("I go to \"/XmlRpc/LiveWriter/Manifest\"");
|
|
|
|
testRunner.When("I go to \"/XmlRpc/LiveWriter/Manifest\"");
|
|
|
|
#line 140
|
|
|
|
#line 140
|
|
|
|
testRunner.Then("the content type should be \"\\btext/xml\\b\"");
|
|
|
|
testRunner.Then("the content type should be \"\\btext/xml\\b\"");
|
|
|
|
#line 141
|
|
|
|
#line 141
|
|
|
|
testRunner.And("I should see \"<manifest xmlns=\"http\\://schemas\\.microsoft\\.com/wlw/manifest/weblo" +
|
|
|
|
testRunner.And("I should see \"<manifest xmlns=\"http\\://schemas\\.microsoft\\.com/wlw/manifest/weblo" +
|
|
|
|
"g\">\"");
|
|
|
|
"g\">\"");
|
|
|
|
#line 142
|
|
|
|
#line 142
|
|
|
|
testRunner.And("I should see \"<clientType>Metaweblog</clientType>\"");
|
|
|
|
testRunner.And("I should see \"<clientType>Metaweblog</clientType>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -431,11 +431,11 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 144
|
|
|
|
#line 144
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 145
|
|
|
|
#line 145
|
|
|
|
testRunner.Given("I have installed Orchard at \"/OrchardLocal\"");
|
|
|
|
testRunner.Given("I have installed Orchard at \"/OrchardLocal\"");
|
|
|
|
#line 146
|
|
|
|
#line 146
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line 147
|
|
|
|
#line 147
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/OrchardLocal/</span>\"");
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/OrchardLocal/</span>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -444,17 +444,17 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 148
|
|
|
|
#line 148
|
|
|
|
testRunner.When("I fill in", ((string)(null)), table13);
|
|
|
|
testRunner.When("I fill in", ((string)(null)), table13);
|
|
|
|
#line 151
|
|
|
|
#line 151
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 152
|
|
|
|
#line 152
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 153
|
|
|
|
#line 153
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 154
|
|
|
|
#line 154
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line 155
|
|
|
|
#line 155
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/OrchardLocal/my-blog/</span>\"");
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/OrchardLocal/my-blog/</span>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -469,11 +469,11 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 157
|
|
|
|
#line 157
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 158
|
|
|
|
#line 158
|
|
|
|
testRunner.Given("I have installed Orchard at \"/\"");
|
|
|
|
testRunner.Given("I have installed Orchard at \"/\"");
|
|
|
|
#line 159
|
|
|
|
#line 159
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line 160
|
|
|
|
#line 160
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/</span>\"");
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/</span>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -482,17 +482,17 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.Title",
|
|
|
|
"Routable.Title",
|
|
|
|
"My Blog"});
|
|
|
|
"My Blog"});
|
|
|
|
#line 161
|
|
|
|
#line 161
|
|
|
|
testRunner.When("I fill in", ((string)(null)), table14);
|
|
|
|
testRunner.When("I fill in", ((string)(null)), table14);
|
|
|
|
#line 164
|
|
|
|
#line 164
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 165
|
|
|
|
#line 165
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 166
|
|
|
|
#line 166
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 167
|
|
|
|
#line 167
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line 168
|
|
|
|
#line 168
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/my-blog/</span>\"");
|
|
|
|
testRunner.Then("I should see \"<span>http\\://localhost/my-blog/</span>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -507,9 +507,9 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 170
|
|
|
|
#line 170
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
this.ScenarioSetup(scenarioInfo);
|
|
|
|
#line 171
|
|
|
|
#line 171
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
testRunner.Given("I have installed Orchard");
|
|
|
|
#line 172
|
|
|
|
#line 172
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
testRunner.When("I go to \"admin/blogs/create\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -521,15 +521,15 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Routable.PromoteToHomePage",
|
|
|
|
"Routable.PromoteToHomePage",
|
|
|
|
"true"});
|
|
|
|
"true"});
|
|
|
|
#line 173
|
|
|
|
#line 173
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table15);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table15);
|
|
|
|
#line 177
|
|
|
|
#line 177
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
testRunner.And("I hit \"Save\"");
|
|
|
|
#line 178
|
|
|
|
#line 178
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
testRunner.And("I go to \"admin/blogs\"");
|
|
|
|
#line 179
|
|
|
|
#line 179
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
testRunner.And("I follow \"My Blog\"");
|
|
|
|
#line 180
|
|
|
|
#line 180
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
testRunner.And("I follow \"New Post\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
|
|
|
|
"name",
|
|
|
|
"name",
|
|
|
@@ -541,23 +541,23 @@ this.ScenarioSetup(scenarioInfo);
|
|
|
|
"Body.Text",
|
|
|
|
"Body.Text",
|
|
|
|
"Hi there."});
|
|
|
|
"Hi there."});
|
|
|
|
#line 181
|
|
|
|
#line 181
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table16);
|
|
|
|
testRunner.And("I fill in", ((string)(null)), table16);
|
|
|
|
#line 185
|
|
|
|
#line 185
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
testRunner.And("I hit \"Publish Now\"");
|
|
|
|
#line 186
|
|
|
|
#line 186
|
|
|
|
testRunner.And("I am redirected");
|
|
|
|
testRunner.And("I am redirected");
|
|
|
|
#line 187
|
|
|
|
#line 187
|
|
|
|
testRunner.And("I go to \"/Default.aspx\"");
|
|
|
|
testRunner.And("I go to \"/\"");
|
|
|
|
#line 188
|
|
|
|
#line 188
|
|
|
|
testRunner.Then("I should see \"<h1>My Blog</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1>My Blog</h1>\"");
|
|
|
|
#line 189
|
|
|
|
#line 189
|
|
|
|
testRunner.When("I go to \"/my-blog\"");
|
|
|
|
testRunner.When("I go to \"/my-blog\"");
|
|
|
|
#line 190
|
|
|
|
#line 190
|
|
|
|
testRunner.Then("the status should be 404 \"Not Found\"");
|
|
|
|
testRunner.Then("the status should be 404 \"Not Found\"");
|
|
|
|
#line 191
|
|
|
|
#line 191
|
|
|
|
testRunner.When("I go to \"/my-post\"");
|
|
|
|
testRunner.When("I go to \"/my-post\"");
|
|
|
|
#line 192
|
|
|
|
#line 192
|
|
|
|
testRunner.Then("I should see \"<h1>My Post</h1>\"");
|
|
|
|
testRunner.Then("I should see \"<h1>My Post</h1>\"");
|
|
|
|
#line hidden
|
|
|
|
#line hidden
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
testRunner.CollectScenarioErrors();
|
|
|
|
}
|
|
|
|
}
|
|
|
|