2011-11-29 10:06:13 -08:00
// ------------------------------------------------------------------------------
2010-04-20 14:27:43 -07:00
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
2012-08-22 12:00:17 -07:00
// SpecFlow Version:1.9.0.77
// SpecFlow Generator Version:1.9.0.0
2013-09-10 16:12:43 -07:00
// Runtime Version:4.0.30319.33440
2010-04-20 14:27:43 -07:00
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
2010-07-14 17:29:23 -07:00
#region Designer generated code
2011-11-29 10:06:13 -08:00
#pragma warning disable
2010-04-20 14:27:43 -07:00
namespace Orchard.Specs
{
using TechTalk.SpecFlow ;
2012-08-22 12:00:17 -07:00
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")]
2010-07-14 17:29:23 -07:00
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
2010-04-20 14:27:43 -07:00
[NUnit.Framework.TestFixtureAttribute()]
[NUnit.Framework.DescriptionAttribute("Setup")]
public partial class SetupFeature
{
private static TechTalk . SpecFlow . ITestRunner testRunner ;
#line 1 "Setup.feature"
#line hidden
[NUnit.Framework.TestFixtureSetUpAttribute()]
public virtual void FeatureSetup ( )
{
testRunner = TechTalk . SpecFlow . TestRunnerManager . GetTestRunner ( ) ;
2011-11-29 10:06:13 -08:00
TechTalk . SpecFlow . FeatureInfo featureInfo = new TechTalk . SpecFlow . FeatureInfo ( new System . Globalization . CultureInfo ( "en-US" ) , "Setup" , " In order to install orchard\r\n As a new user\r\n I want to setup a new site from" +
" the default screen" , ProgrammingLanguage . CSharp , ( ( string [ ] ) ( null ) ) ) ;
2010-04-20 14:27:43 -07:00
testRunner . OnFeatureStart ( featureInfo ) ;
}
[NUnit.Framework.TestFixtureTearDownAttribute()]
public virtual void FeatureTearDown ( )
{
testRunner . OnFeatureEnd ( ) ;
testRunner = null ;
}
2011-11-29 10:06:13 -08:00
[NUnit.Framework.SetUpAttribute()]
public virtual void TestInitialize ( )
2010-04-20 14:27:43 -07:00
{
}
[NUnit.Framework.TearDownAttribute()]
public virtual void ScenarioTearDown ( )
{
testRunner . OnScenarioEnd ( ) ;
}
2011-11-29 10:06:13 -08:00
public virtual void ScenarioSetup ( TechTalk . SpecFlow . ScenarioInfo scenarioInfo )
{
testRunner . OnScenarioStart ( scenarioInfo ) ;
}
public virtual void ScenarioCleanup ( )
{
testRunner . CollectScenarioErrors ( ) ;
}
2010-04-20 14:27:43 -07:00
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Root request shows setup form")]
public virtual void RootRequestShowsSetupForm ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "Root request shows setup form" , ( ( string [ ] ) ( null ) ) ) ;
#line 6
this . ScenarioSetup ( scenarioInfo ) ;
2010-09-21 18:00:55 -07:00
#line hidden
TechTalk . SpecFlow . Table table1 = new TechTalk . SpecFlow . Table ( new string [ ] {
"extension" ,
"names" } ) ;
table1 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Module" ,
2014-02-28 15:20:27 -08:00
@"Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp" } ) ;
2010-09-21 18:00:55 -07:00
table1 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Core" ,
2013-09-11 13:10:47 -07:00
"Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," +
" Shapes, XmlRpc, Title, Reports" } ) ;
2010-09-21 18:00:55 -07:00
table1 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Theme" ,
2010-09-21 18:00:55 -07:00
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 7
2012-08-22 12:00:17 -07:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table1 , "Given " ) ;
2010-09-21 18:00:55 -07:00
#line 12
2012-08-22 12:00:17 -07:00
testRunner . When ( "I go to \"/\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "When " ) ;
2010-09-21 18:00:55 -07:00
#line 13
2012-08-22 12:00:17 -07:00
testRunner . Then ( "I should see \"Welcome to Orchard\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "Then " ) ;
2010-09-21 18:00:55 -07:00
#line 14
2012-08-22 12:00:17 -07:00
testRunner . And ( "I should see \"Finish Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-09-21 18:00:55 -07:00
#line 15
2012-08-22 12:00:17 -07:00
testRunner . And ( "the status should be 200 \"OK\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-04-20 14:27:43 -07:00
#line hidden
2011-11-29 10:06:13 -08:00
this . ScenarioCleanup ( ) ;
2010-04-20 14:27:43 -07:00
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Setup folder also shows setup form")]
public virtual void SetupFolderAlsoShowsSetupForm ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "Setup folder also shows setup form" , ( ( string [ ] ) ( null ) ) ) ;
#line 17
2010-09-21 18:00:55 -07:00
this . ScenarioSetup ( scenarioInfo ) ;
#line hidden
TechTalk . SpecFlow . Table table2 = new TechTalk . SpecFlow . Table ( new string [ ] {
"extension" ,
"names" } ) ;
table2 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Module" ,
2014-02-28 15:20:27 -08:00
@"Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp" } ) ;
2010-09-21 18:00:55 -07:00
table2 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Core" ,
2013-09-11 13:10:47 -07:00
"Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," +
" Shapes, XmlRpc, Title, Reports" } ) ;
2010-09-21 18:00:55 -07:00
table2 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Theme" ,
2010-09-21 18:00:55 -07:00
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 18
2012-08-22 12:00:17 -07:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table2 , "Given " ) ;
2010-09-21 18:00:55 -07:00
#line 23
2012-08-22 12:00:17 -07:00
testRunner . When ( "I go to \"/Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "When " ) ;
2010-09-21 18:00:55 -07:00
#line 24
2012-08-22 12:00:17 -07:00
testRunner . Then ( "I should see \"Welcome to Orchard\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "Then " ) ;
2010-09-21 18:00:55 -07:00
#line 25
2012-08-22 12:00:17 -07:00
testRunner . And ( "I should see \"Finish Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-09-21 18:00:55 -07:00
#line 26
2012-08-22 12:00:17 -07:00
testRunner . And ( "the status should be 200 \"OK\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-04-20 14:27:43 -07:00
#line hidden
2011-11-29 10:06:13 -08:00
this . ScenarioCleanup ( ) ;
2010-04-20 14:27:43 -07:00
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Some of the initial form values are required")]
public virtual void SomeOfTheInitialFormValuesAreRequired ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "Some of the initial form values are required" , ( ( string [ ] ) ( null ) ) ) ;
#line 28
2010-09-21 18:00:55 -07:00
this . ScenarioSetup ( scenarioInfo ) ;
#line hidden
TechTalk . SpecFlow . Table table3 = new TechTalk . SpecFlow . Table ( new string [ ] {
"extension" ,
"names" } ) ;
table3 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Module" ,
2014-02-28 15:20:27 -08:00
@"Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp" } ) ;
2010-09-21 18:00:55 -07:00
table3 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Core" ,
2013-09-11 13:10:47 -07:00
"Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," +
" Shapes, XmlRpc, Title, Reports" } ) ;
2010-09-21 18:00:55 -07:00
table3 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Theme" ,
2010-09-21 18:00:55 -07:00
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 29
2012-08-22 12:00:17 -07:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table3 , "Given " ) ;
2010-09-21 18:00:55 -07:00
#line 34
2012-08-22 12:00:17 -07:00
testRunner . When ( "I go to \"/Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "When " ) ;
2010-09-21 18:00:55 -07:00
#line 35
2012-08-22 12:00:17 -07:00
testRunner . And ( "I hit \"Finish Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-09-21 18:00:55 -07:00
#line 36
2013-09-11 13:10:47 -07:00
testRunner . Then ( "I should see \"Site name is required.\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "Then " ) ;
2010-09-21 18:00:55 -07:00
#line 37
2013-09-11 13:10:47 -07:00
testRunner . And ( "I should see \"Password is required.\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
#line 38
testRunner . And ( "I should see \"Password confirmation is required.\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-04-20 14:27:43 -07:00
#line hidden
2011-11-29 10:06:13 -08:00
this . ScenarioCleanup ( ) ;
2010-04-20 14:27:43 -07:00
}
[NUnit.Framework.TestAttribute()]
[NUnit.Framework.DescriptionAttribute("Calling setup on a brand new install")]
public virtual void CallingSetupOnABrandNewInstall ( )
{
TechTalk . SpecFlow . ScenarioInfo scenarioInfo = new TechTalk . SpecFlow . ScenarioInfo ( "Calling setup on a brand new install" , ( ( string [ ] ) ( null ) ) ) ;
2013-09-11 13:10:47 -07:00
#line 40
2010-04-20 14:27:43 -07:00
this . ScenarioSetup ( scenarioInfo ) ;
#line hidden
2010-09-21 18:00:55 -07:00
TechTalk . SpecFlow . Table table4 = new TechTalk . SpecFlow . Table ( new string [ ] {
2010-04-20 14:27:43 -07:00
"extension" ,
2010-04-20 15:07:00 -07:00
"names" } ) ;
2010-09-21 18:00:55 -07:00
table4 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Module" ,
2014-02-28 15:20:27 -08:00
@"Orchard.Setup, Orchard.Pages, Orchard.ContentPicker, Orchard.Blogs, Orchard.MediaLibrary, Orchard.Modules, Orchard.Packaging, Orchard.PublishLater, Orchard.Themes, Orchard.Scripting, Orchard.Widgets, Orchard.Users, Orchard.ContentTypes, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce, Orchard.Recipes, Orchard.Warmup, Orchard.Alias, Orchard.Forms, Orchard.Tokens, Orchard.Autoroute, Orchard.Projections, Orchard.Fields, Orchard.MediaProcessing, Orchard.OutputCache, Orchard.Taxonomies, Orchard.Workflows, Orchard.Scripting.CSharp" } ) ;
2010-09-21 18:00:55 -07:00
table4 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Core" ,
2012-03-01 14:00:31 -08:00
"Common, Containers, Dashboard, Feeds, Navigation, Contents, Scheduling, Settings," +
2013-09-11 13:10:47 -07:00
" Shapes, XmlRpc, Title, Reports" } ) ;
2010-09-21 18:00:55 -07:00
table4 . AddRow ( new string [ ] {
2010-12-01 17:37:11 -08:00
"Theme" ,
2012-03-01 14:00:31 -08:00
"SafeMode, TheAdmin, TheThemeMachine" } ) ;
2013-09-11 13:10:47 -07:00
#line 41
2012-08-22 12:00:17 -07:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table4 , "Given " ) ;
2013-09-11 13:10:47 -07:00
#line 46
2012-08-22 12:00:17 -07:00
testRunner . And ( "I am on \"/Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-04-20 14:27:43 -07:00
#line hidden
2010-09-21 18:00:55 -07:00
TechTalk . SpecFlow . Table table5 = new TechTalk . SpecFlow . Table ( new string [ ] {
2010-04-20 14:27:43 -07:00
"name" ,
"value" } ) ;
2010-09-21 18:00:55 -07:00
table5 . AddRow ( new string [ ] {
2010-04-20 14:27:43 -07:00
"SiteName" ,
"My Site" } ) ;
2010-09-21 18:00:55 -07:00
table5 . AddRow ( new string [ ] {
2010-04-20 14:27:43 -07:00
"AdminPassword" ,
"6655321" } ) ;
2010-09-21 18:00:55 -07:00
table5 . AddRow ( new string [ ] {
2010-07-14 17:29:23 -07:00
"ConfirmPassword" ,
"6655321" } ) ;
2013-09-11 13:10:47 -07:00
#line 47
2012-08-22 12:00:17 -07:00
testRunner . When ( "I fill in" , ( ( string ) ( null ) ) , table5 , "When " ) ;
2011-02-22 15:31:38 -08:00
#line 52
2013-09-11 13:10:47 -07:00
testRunner . And ( "I hit \"Finish Setup\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2011-02-22 15:31:38 -08:00
#line 53
2013-09-11 13:10:47 -07:00
testRunner . And ( "I go to \"/\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2011-02-22 15:31:38 -08:00
#line 54
2013-09-11 13:10:47 -07:00
testRunner . Then ( "I should see \"My Site\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "Then " ) ;
#line 55
2011-01-07 16:12:28 -08:00
testRunner . And ( "I should see \"Welcome, <strong><a href=\"/Users/Account/ChangePassword\">admin</a><" +
2012-08-22 12:00:17 -07:00
"/strong>!\"" , ( ( string ) ( null ) ) , ( ( TechTalk . SpecFlow . Table ) ( null ) ) , "And " ) ;
2010-04-20 14:27:43 -07:00
#line hidden
2011-11-29 10:06:13 -08:00
this . ScenarioCleanup ( ) ;
2010-04-20 14:27:43 -07:00
}
}
}
2011-11-29 10:06:13 -08:00
#pragma warning restore
2010-07-14 17:29:23 -07:00
#endregion