2010-11-15 16:36:19 +08:00
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
2010-11-30 08:01:46 +08:00
// SpecFlow Version:1.4.0.0
2010-11-15 16:36:19 +08:00
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
namespace Orchard.Specs
{
using TechTalk.SpecFlow ;
2010-11-30 08:01:46 +08:00
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
2010-11-15 16:36:19 +08:00
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[NUnit.Framework.TestFixtureAttribute()]
2010-11-19 02:24:26 +08:00
[NUnit.Framework.DescriptionAttribute("Blog")]
public partial class BlogFeature
2010-11-15 16:36:19 +08:00
{
private static TechTalk . SpecFlow . ITestRunner testRunner ;
#line 1 "Blogs.feature"
#line hidden
[NUnit.Framework.TestFixtureSetUpAttribute()]
public virtual void FeatureSetup ( )
{
testRunner = TechTalk . SpecFlow . TestRunnerManager . GetTestRunner ( ) ;
2010-11-19 02:24:26 +08:00
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" +
2010-11-30 08:01:46 +08:00
", publish and edit blog posts" , GenerationTargetLanguage . CSharp , ( ( string [ ] ) ( null ) ) ) ;
2010-11-15 16:36:19 +08:00
testRunner . OnFeatureStart ( featureInfo ) ;
}
[NUnit.Framework.TestFixtureTearDownAttribute()]
public virtual void FeatureTearDown ( )
{
testRunner . OnFeatureEnd ( ) ;
testRunner = null ;
}
public virtual void ScenarioSetup ( TechTalk . SpecFlow . ScenarioInfo scenarioInfo )
{
testRunner . OnScenarioStart ( scenarioInfo ) ;
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown ( )
{
testRunner . OnScenarioEnd ( ) ;
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("In the admin (menu) there is a link to create a Blog")]
public virtual void InTheAdminMenuThereIsALinkToCreateABlog ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "In the admin (menu) there is a link to create a Blog" , ( ( string [ ] ) ( null ) ) ) ;
#line 6
this . ScenarioSetup ( scenarioInfo ) ;
#line 7
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-15 16:36:19 +08:00
#line 8
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin\"" ) ;
2010-11-15 16:36:19 +08:00
#line 9
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<a href=\"/Admin/Blogs/Create\">Blogs</a>\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("I can create a new blog and blog post")]
public virtual void ICanCreateANewBlogAndBlogPost ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "I can create a new blog and blog post" , ( ( string [ ] ) ( null ) ) ) ;
#line 11
this . ScenarioSetup ( scenarioInfo ) ;
#line 12
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-15 16:36:19 +08:00
#line 13
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table1 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table1 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 14
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table1 ) ;
2010-11-15 16:36:19 +08:00
#line 17
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-15 16:36:19 +08:00
#line 18
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog\"" ) ;
2010-11-15 16:36:19 +08:00
#line 19
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"" ) ;
2010-11-15 16:36:19 +08:00
#line 20
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table2 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table2 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table2 . AddRow ( new string [ ] {
"Body.Text" ,
"Hi there." } ) ;
#line 21
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table2 ) ;
2010-11-15 16:36:19 +08:00
#line 25
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-15 16:36:19 +08:00
#line 26
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post\"" ) ;
2010-11-15 16:36:19 +08:00
#line 27
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-15 16:36:19 +08:00
#line 28
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Hi there.\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[ NUnit . Framework . DescriptionAttribute ( "I can create a new blog with multiple blog posts each with the same title and uni" +
"que slugs are generated or given for said posts" ) ]
public virtual void ICanCreateANewBlogWithMultipleBlogPostsEachWithTheSameTitleAndUniqueSlugsAreGeneratedOrGivenForSaidPosts ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "I can create a new blog with multiple blog posts each with the same title and uni" +
"que slugs are generated or given for said posts" , ( ( string [ ] ) ( null ) ) ) ;
#line 30
this . ScenarioSetup ( scenarioInfo ) ;
#line 31
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-15 16:36:19 +08:00
#line 32
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table3 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table3 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 33
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table3 ) ;
2010-11-15 16:36:19 +08:00
#line 36
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-15 16:36:19 +08:00
#line 37
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table4 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table4 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table4 . AddRow ( new string [ ] {
"Body.Text" ,
"Hi there." } ) ;
#line 38
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table4 ) ;
2010-11-15 16:36:19 +08:00
#line 42
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-15 16:36:19 +08:00
#line 43
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post\"" ) ;
2010-11-15 16:36:19 +08:00
#line 44
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-15 16:36:19 +08:00
#line 45
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Hi there.\"" ) ;
2010-11-15 16:36:19 +08:00
#line 46
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table5 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table5 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table5 . AddRow ( new string [ ] {
"Body.Text" ,
"Hi there, again." } ) ;
#line 47
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table5 ) ;
2010-11-15 16:36:19 +08:00
#line 51
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-15 16:36:19 +08:00
#line 52
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post-2\"" ) ;
2010-11-15 16:36:19 +08:00
#line 53
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-15 16:36:19 +08:00
#line 54
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Hi there, again.\"" ) ;
2010-11-15 16:36:19 +08:00
#line 55
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
TechTalk . SpecFlow . Table table6 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table6 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table6 . AddRow ( new string [ ] {
"Routable.Slug" ,
"my-post" } ) ;
table6 . AddRow ( new string [ ] {
"Body.Text" ,
"Are you still there?" } ) ;
#line 56
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table6 ) ;
2010-11-15 16:36:19 +08:00
#line 61
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-15 16:36:19 +08:00
#line 62
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post-3\"" ) ;
2010-11-15 16:36:19 +08:00
#line 63
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-15 16:36:19 +08:00
#line 64
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Are you still there?\"" ) ;
2010-11-16 04:53:20 +08:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[ NUnit . Framework . DescriptionAttribute ( "I can create a new blog and blog post and when I change the slug of the blog the " +
"path of the plog post is updated" ) ]
public virtual void ICanCreateANewBlogAndBlogPostAndWhenIChangeTheSlugOfTheBlogThePathOfThePlogPostIsUpdated ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "I can create a new blog and blog post and when I change the slug of the blog the " +
"path of the plog post is updated" , ( ( string [ ] ) ( null ) ) ) ;
#line 66
this . ScenarioSetup ( scenarioInfo ) ;
#line 67
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-16 04:53:20 +08:00
#line 68
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
2010-11-16 04:53:20 +08:00
#line hidden
TechTalk . SpecFlow . Table table7 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table7 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 69
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table7 ) ;
2010-11-16 04:53:20 +08:00
#line 72
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-16 04:53:20 +08:00
#line 73
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog\"" ) ;
2010-11-16 04:53:20 +08:00
#line 74
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"" ) ;
2010-11-16 04:53:20 +08:00
#line 75
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-16 04:53:20 +08:00
#line hidden
TechTalk . SpecFlow . Table table8 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table8 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table8 . AddRow ( new string [ ] {
"Body.Text" ,
"Hi there." } ) ;
#line 76
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table8 ) ;
2010-11-16 04:53:20 +08:00
#line 80
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-16 04:53:20 +08:00
#line 81
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post\"" ) ;
2010-11-16 04:53:20 +08:00
#line 82
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-16 04:53:20 +08:00
#line 83
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Hi there.\"" ) ;
2010-11-16 04:53:20 +08:00
#line 84
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/my-blog\"" ) ;
2010-11-16 04:53:20 +08:00
#line 85
2010-11-30 08:01:46 +08:00
testRunner . And ( "I follow \"Blog Properties\"" ) ;
2010-11-16 04:53:20 +08:00
#line hidden
TechTalk . SpecFlow . Table table9 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table9 . AddRow ( new string [ ] {
"Routable.Slug" ,
"my-other-blog" } ) ;
#line 86
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table9 ) ;
2010-11-16 04:53:20 +08:00
#line 89
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-16 04:53:20 +08:00
#line 90
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-other-blog\"" ) ;
2010-11-16 04:53:20 +08:00
#line 91
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"" ) ;
2010-11-16 04:53:20 +08:00
#line 92
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"my-other-blog/my-post\"" ) ;
2010-11-16 04:53:20 +08:00
#line 93
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<h1[^>]*>.*?My Post.*?</h1>\"" ) ;
2010-11-16 04:53:20 +08:00
#line 94
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"Hi there.\"" ) ;
2010-11-17 05:12:38 +08:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("When viewing a blog the user agent is given an RSS feed of the blog\'s posts")]
public virtual void WhenViewingABlogTheUserAgentIsGivenAnRSSFeedOfTheBlogSPosts ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "When viewing a blog the user agent is given an RSS feed of the blog\'s posts" , ( ( string [ ] ) ( null ) ) ) ;
#line 96
this . ScenarioSetup ( scenarioInfo ) ;
#line 97
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-17 05:12:38 +08:00
#line 98
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
2010-11-17 05:12:38 +08:00
#line hidden
TechTalk . SpecFlow . Table table10 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table10 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 99
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table10 ) ;
2010-11-17 05:12:38 +08:00
#line 102
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-17 05:12:38 +08:00
#line 103
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
2010-11-17 05:12:38 +08:00
#line hidden
TechTalk . SpecFlow . Table table11 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table11 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Post" } ) ;
table11 . AddRow ( new string [ ] {
"Body.Text" ,
"Hi there." } ) ;
#line 104
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table11 ) ;
2010-11-17 05:12:38 +08:00
#line 108
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Publish Now\"" ) ;
2010-11-17 05:12:38 +08:00
#line 109
2010-11-30 08:01:46 +08:00
testRunner . And ( "I am redirected" ) ;
2010-11-17 05:12:38 +08:00
#line 110
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog/my-post\"" ) ;
2010-11-17 05:12:38 +08:00
#line 111
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<link rel=\"alternate\" type=\"application/rss\\+xml\" title=\"My Blog\" h" +
2010-11-17 05:12:38 +08:00
"ref=\"/rss\\?containerid=\\d+\" />\"" ) ;
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[ NUnit . Framework . DescriptionAttribute ( "Enabling remote blog publishing inserts the appropriate metaweblogapi markup into" +
" the blog\'s page" ) ]
public virtual void EnablingRemoteBlogPublishingInsertsTheAppropriateMetaweblogapiMarkupIntoTheBlogSPage ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "Enabling remote blog publishing inserts the appropriate metaweblogapi markup into" +
" the blog\'s page" , ( ( string [ ] ) ( null ) ) ) ;
#line 114
this . ScenarioSetup ( scenarioInfo ) ;
#line 115
2010-11-30 08:01:46 +08:00
testRunner . Given ( "I have installed Orchard" ) ;
2010-11-17 05:12:38 +08:00
#line 116
2010-11-30 08:01:46 +08:00
testRunner . And ( "I have enabled \"XmlRpc\"" ) ;
2010-11-17 05:12:38 +08:00
#line 117
2010-11-30 08:01:46 +08:00
testRunner . And ( "I have enabled \"Orchard.Blogs.RemotePublishing\"" ) ;
2010-11-17 05:12:38 +08:00
#line 118
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
2010-11-17 05:12:38 +08:00
#line hidden
TechTalk . SpecFlow . Table table12 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table12 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 119
2010-11-30 08:01:46 +08:00
testRunner . And ( "I fill in" , ( ( string ) ( null ) ) , table12 ) ;
2010-11-17 05:12:38 +08:00
#line 122
2010-11-30 08:01:46 +08:00
testRunner . And ( "I hit \"Save\"" ) ;
2010-11-17 05:12:38 +08:00
#line 123
2010-11-30 08:01:46 +08:00
testRunner . And ( "I go to \"my-blog\"" ) ;
2010-11-17 05:12:38 +08:00
#line 124
2010-11-30 08:01:46 +08:00
testRunner . Then ( "I should see \"<link href=\"[^\"]*/XmlRpc/LiveWriter/Manifest\" rel=\"wlwmanifest\" typ" +
2010-11-19 02:24:26 +08:00
"e=\"application/wlwmanifest\\+xml\" />\"" ) ;
#line 125
2010-11-30 08:01:46 +08:00
testRunner . When ( "I go to \"/XmlRpc/LiveWriter/Manifest\"" ) ;
2010-11-19 02:24:26 +08:00
#line 126
2010-11-30 08:01:46 +08:00
testRunner . Then ( "the content type should be \"\\btext/xml\\b\"" ) ;
2010-11-19 02:24:26 +08:00
#line 127
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"<manifest xmlns=\"http\\://schemas\\.microsoft\\.com/wlw/manifest/weblo" +
2010-11-19 02:24:26 +08:00
"g\">\"" ) ;
#line 128
2010-11-30 08:01:46 +08:00
testRunner . And ( "I should see \"<clientType>Metaweblog</clientType>\"" ) ;
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[ NUnit . Framework . DescriptionAttribute ( "The virtual path of my installation when not at the root is reflected in the URL " +
"example for the slug field when creating a blog or blog post" ) ]
public virtual void TheVirtualPathOfMyInstallationWhenNotAtTheRootIsReflectedInTheURLExampleForTheSlugFieldWhenCreatingABlogOrBlogPost ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "The virtual path of my installation when not at the root is reflected in the URL " +
"example for the slug field when creating a blog or blog post" , ( ( string [ ] ) ( null ) ) ) ;
#line 130
this . ScenarioSetup ( scenarioInfo ) ;
#line 131
testRunner . Given ( "I have installed Orchard at \"/OrchardLocal\"" ) ;
#line 132
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
#line 133
testRunner . Then ( "I should see \"<span>http\\://localhost/OrchardLocal/</span>\"" ) ;
#line hidden
TechTalk . SpecFlow . Table table13 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table13 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 134
testRunner . When ( "I fill in" , ( ( string ) ( null ) ) , table13 ) ;
#line 137
testRunner . And ( "I hit \"Save\"" ) ;
#line 138
testRunner . And ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
#line 139
testRunner . Then ( "I should see \"<span>http\\://localhost/OrchardLocal/my-blog/</span>\"" ) ;
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[NUnit.Framework.TestAttribute()]
[ NUnit . Framework . DescriptionAttribute ( "The virtual path of my installation when at the root is reflected in the URL exam" +
"ple for the slug field when creating a blog or blog post" ) ]
public virtual void TheVirtualPathOfMyInstallationWhenAtTheRootIsReflectedInTheURLExampleForTheSlugFieldWhenCreatingABlogOrBlogPost ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "The virtual path of my installation when at the root is reflected in the URL exam" +
"ple for the slug field when creating a blog or blog post" , ( ( string [ ] ) ( null ) ) ) ;
#line 141
this . ScenarioSetup ( scenarioInfo ) ;
#line 142
testRunner . Given ( "I have installed Orchard at \"/\"" ) ;
#line 143
testRunner . When ( "I go to \"admin/blogs/create\"" ) ;
#line 144
testRunner . Then ( "I should see \"<span>http\\://localhost/</span>\"" ) ;
#line hidden
TechTalk . SpecFlow . Table table14 = new TechTalk . SpecFlow . Table ( new string [ ] {
"name" ,
"value" } ) ;
table14 . AddRow ( new string [ ] {
"Routable.Title" ,
"My Blog" } ) ;
#line 145
testRunner . When ( "I fill in" , ( ( string ) ( null ) ) , table14 ) ;
#line 148
testRunner . And ( "I hit \"Save\"" ) ;
#line 149
testRunner . And ( "I go to \"admin/blogs/my-blog/posts/create\"" ) ;
#line 150
testRunner . Then ( "I should see \"<span>http\\://localhost/my-blog/</span>\"" ) ;
2010-11-15 16:36:19 +08:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
}
}
#endregion