2010-04-20 14:27:43 -07:00
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
2010-11-14 14:34:32 -08:00
// SpecFlow Version:1.4.0.0
2010-07-14 17:29:23 -07:00
// Runtime Version:4.0.30319.1
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
2010-04-20 14:27:43 -07:00
namespace Orchard.Specs
{
using TechTalk.SpecFlow ;
2010-11-14 14:34:32 -08:00
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
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 ( ) ;
TechTalk . SpecFlow . FeatureInfo featureInfo = new TechTalk . SpecFlow . FeatureInfo ( new System . Globalization . CultureInfo ( "en-US" ) , "Setup" , "In order to install orchard\r\nAs a new user\r\nI want to setup a new site from the d" +
2010-11-14 14:34:32 -08:00
"efault screen" , GenerationTargetLanguage . 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 ;
}
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("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 [ ] {
"module" ,
2010-11-14 21:52:31 -08:00
"Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Comments, Orc" +
"hard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce" } ) ;
2010-09-21 18:00:55 -07:00
table1 . AddRow ( new string [ ] {
"core" ,
2010-11-13 10:08:26 -08:00
"Common, Contents, Dashboard, Feeds, HomePage, Messaging, Navigation, Routable, Sc" +
"heduling, Settings, Shapes, XmlRpc" } ) ;
2010-09-21 18:00:55 -07:00
table1 . AddRow ( new string [ ] {
"theme" ,
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 7
2010-11-14 14:34:32 -08:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table1 ) ;
2010-09-21 18:00:55 -07:00
#line 12
2010-11-14 14:34:32 -08:00
testRunner . When ( "I go to \"/Default.aspx\"" ) ;
2010-09-21 18:00:55 -07:00
#line 13
2010-11-14 14:34:32 -08:00
testRunner . Then ( "I should see \"Welcome to Orchard\"" ) ;
2010-09-21 18:00:55 -07:00
#line 14
2010-11-14 14:34:32 -08:00
testRunner . And ( "I should see \"Finish Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 15
2010-11-14 14:34:32 -08:00
testRunner . And ( "the status should be 200 \"OK\"" ) ;
2010-04-20 14:27:43 -07:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[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 [ ] {
"module" ,
2010-11-14 21:52:31 -08:00
"Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Comments, Orc" +
"hard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce" } ) ;
2010-09-21 18:00:55 -07:00
table2 . AddRow ( new string [ ] {
"core" ,
2010-11-13 10:08:26 -08:00
"Common, Contents, Dashboard, Feeds, HomePage, Messaging, Navigation, Routable, Sc" +
"heduling, Settings, Shapes, XmlRpc" } ) ;
2010-09-21 18:00:55 -07:00
table2 . AddRow ( new string [ ] {
"theme" ,
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 18
2010-11-14 14:34:32 -08:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table2 ) ;
2010-09-21 18:00:55 -07:00
#line 23
2010-11-14 14:34:32 -08:00
testRunner . When ( "I go to \"/Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 24
2010-11-14 14:34:32 -08:00
testRunner . Then ( "I should see \"Welcome to Orchard\"" ) ;
2010-09-21 18:00:55 -07:00
#line 25
2010-11-14 14:34:32 -08:00
testRunner . And ( "I should see \"Finish Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 26
2010-11-14 14:34:32 -08:00
testRunner . And ( "the status should be 200 \"OK\"" ) ;
2010-04-20 14:27:43 -07:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[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 [ ] {
"module" ,
2010-11-14 21:52:31 -08:00
"Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Comments, Orc" +
"hard.PublishLater, Orchard.Themes, Orchard.jQuery, TinyMce" } ) ;
2010-09-21 18:00:55 -07:00
table3 . AddRow ( new string [ ] {
"core" ,
2010-11-13 10:08:26 -08:00
"Common, Contents, Dashboard, Feeds, HomePage, Messaging, Navigation, Routable, Sc" +
"heduling, Settings, Shapes, XmlRpc" } ) ;
2010-09-21 18:00:55 -07:00
table3 . AddRow ( new string [ ] {
"theme" ,
"SafeMode" } ) ;
2010-04-20 14:27:43 -07:00
#line 29
2010-11-14 14:34:32 -08:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table3 ) ;
2010-09-21 18:00:55 -07:00
#line 34
2010-11-14 14:34:32 -08:00
testRunner . When ( "I go to \"/Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 35
2010-11-14 14:34:32 -08:00
testRunner . And ( "I hit \"Finish Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 36
2010-11-14 14:34:32 -08:00
testRunner . Then ( "I should see \"<input autofocus=\"autofocus\" class=\"input-validation-error\" id=\"Sit" +
2010-09-21 18:00:55 -07:00
"eName\" name=\"SiteName\" type=\"text\" value=\"\" />\"" ) ;
#line 37
2010-11-14 14:34:32 -08:00
testRunner . And ( "I should see \"<input class=\"input-validation-error\" id=\"AdminPassword\" name=\"Admi" +
2010-09-21 18:00:55 -07:00
"nPassword\" type=\"password\" />\"" ) ;
2010-04-20 14:27:43 -07:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
[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 ) ) ) ;
2010-09-21 18:00:55 -07:00
#line 39
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-04-20 14:27:43 -07:00
"module" ,
2010-11-14 21:52:31 -08:00
"Orchard.Setup, Orchard.Pages, Orchard.Users, Orchard.Roles, Orchard.Comments, Orc" +
"hard.PublishLater, Orchard.Themes, Orchard.Modules, Orchard.Widgets, Orchard.jQu" +
"ery, TinyMce" } ) ;
2010-09-21 18:00:55 -07:00
table4 . AddRow ( new string [ ] {
2010-04-20 14:27:43 -07:00
"core" ,
2010-11-13 10:08:26 -08:00
"Common, Contents, Dashboard, Feeds, HomePage, Messaging, Navigation, Routable, Sc" +
"heduling, Settings, Shapes, XmlRpc" } ) ;
2010-09-21 18:00:55 -07:00
table4 . AddRow ( new string [ ] {
2010-04-20 14:27:43 -07:00
"theme" ,
2010-10-17 01:45:13 -07:00
"SafeMode, TheThemeMachine" } ) ;
2010-09-21 18:00:55 -07:00
#line 40
2010-11-14 14:34:32 -08:00
testRunner . Given ( "I have a clean site with" , ( ( string ) ( null ) ) , table4 ) ;
2010-09-21 18:00:55 -07:00
#line 45
2010-11-14 14:34:32 -08:00
testRunner . And ( "I am on \"/Setup\"" ) ;
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" } ) ;
2010-04-21 15:01:01 -07:00
#line 46
2010-11-14 14:34:32 -08:00
testRunner . When ( "I fill in" , ( ( string ) ( null ) ) , table5 ) ;
2010-09-21 18:00:55 -07:00
#line 51
2010-11-14 14:34:32 -08:00
testRunner . And ( "I hit \"Finish Setup\"" ) ;
2010-09-21 18:00:55 -07:00
#line 52
2010-11-14 14:34:32 -08:00
testRunner . And ( "I go to \"/Default.aspx\"" ) ;
2010-09-21 18:00:55 -07:00
#line 53
2010-11-14 14:34:32 -08:00
testRunner . Then ( "I should see \"My Site\"" ) ;
2010-09-21 18:00:55 -07:00
#line 54
2010-11-14 14:34:32 -08:00
testRunner . And ( "I should see \"Welcome, <strong>admin</strong>!\"" ) ;
2010-04-20 14:27:43 -07:00
#line hidden
testRunner . CollectScenarioErrors ( ) ;
}
}
}
2010-07-14 17:29:23 -07:00
#endregion