Permalink
Browse files

First acceptance test built. Now time to make it pass.

  • Loading branch information...
1 parent 3860cd8 commit a44ea6c9bbea5fa878aa6d530fb5fc098f50273b David Basarab committed Jun 26, 2012
@@ -1,13 +1,14 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <configSections>
- <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
- </configSections>
- <specFlow>
- <!-- For additional details on SpecFlow configuration options see https://github.com/techtalk/SpecFlow/wiki/Configuration -->
- </specFlow>
- <connectionStrings>
- <clear />
- <add name="YadaTesting" connectionString="Data Source=TEAMHDEJ-LAPTOP\SQLEXPRESS;Initial Catalog=master;Integrated Security=True" />
- </connectionStrings>
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <configSections>
+ <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
+ </configSections>
+ <specFlow>
+ <!-- For additional details on SpecFlow configuration options see https://github.com/techtalk/SpecFlow/wiki/Configuration -->
+ </specFlow>
+ <connectionStrings>
+ <clear />
+ <!--<add name="YadaTesting" connectionString="Data Source=TEAMHDEJ-LAPTOP\SQLEXPRESS;Initial Catalog=master;Integrated Security=True" />-->
+ <add name="YadaTesting" connectionString="Data Source=PMI0526\ExpressTest;Initial Catalog=master;Integrated Security=True" />
+ </connectionStrings>
</configuration>
@@ -0,0 +1,14 @@
+Feature: Small table reading
+ In order to read a records from a small table
+ As a developer
+ I want to use YADA in the most simple way to read items out of the database and populate value objects
+
+Background:
+ Given I have a test database created
+ Given I have small table created
+ Given I have small table populated
+
+@database
+Scenario: I want to read 1 row
+ When using a store procedure to read a record
+ Then the operation should happen in less than 1000 ms
@@ -0,0 +1,102 @@
+// ------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by SpecFlow (http://www.specflow.org/).
+// SpecFlow Version:1.8.1.0
+// SpecFlow Generator Version:1.8.0.0
+// Runtime Version:4.0.30319.17626
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+// ------------------------------------------------------------------------------
+#region Designer generated code
+#pragma warning disable
+namespace YADA.Acceptance.Features
+{
+ using TechTalk.SpecFlow;
+
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.8.1.0")]
+ [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [NUnit.Framework.TestFixtureAttribute()]
+ [NUnit.Framework.DescriptionAttribute("Small table reading")]
+ public partial class SmallTableReadingFeature
+ {
+
+ private static TechTalk.SpecFlow.ITestRunner testRunner;
+
+#line 1 "SmallTableReading.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"), "Small table reading", " In order to read a records from a small table\r\n As a developer\r\n I want to us" +
+ "e YADA in the most simple way to read items out of the database and populate val" +
+ "ue objects", ProgrammingLanguage.CSharp, ((string[])(null)));
+ testRunner.OnFeatureStart(featureInfo);
+ }
+
+ [NUnit.Framework.TestFixtureTearDownAttribute()]
+ public virtual void FeatureTearDown()
+ {
+ testRunner.OnFeatureEnd();
+ testRunner = null;
+ }
+
+ [NUnit.Framework.SetUpAttribute()]
+ public virtual void TestInitialize()
+ {
+ }
+
+ [NUnit.Framework.TearDownAttribute()]
+ public virtual void ScenarioTearDown()
+ {
+ testRunner.OnScenarioEnd();
+ }
+
+ public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
+ {
+ testRunner.OnScenarioStart(scenarioInfo);
+ }
+
+ public virtual void ScenarioCleanup()
+ {
+ testRunner.CollectScenarioErrors();
+ }
+
+ public virtual void FeatureBackground()
+ {
+#line 6
+#line 7
+ testRunner.Given("I have a test database created");
+#line 8
+ testRunner.Given("I have small table created");
+#line 9
+ testRunner.Given("I have small table populated");
+#line hidden
+ }
+
+ [NUnit.Framework.TestAttribute()]
+ [NUnit.Framework.DescriptionAttribute("I want to read 1 row")]
+ [NUnit.Framework.CategoryAttribute("database")]
+ public virtual void IWantToRead1Row()
+ {
+ TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("I want to read 1 row", new string[] {
+ "database"});
+#line 12
+this.ScenarioSetup(scenarioInfo);
+#line 6
+this.FeatureBackground();
+#line 13
+ testRunner.When("using a store procedure to read a record");
+#line 14
+ testRunner.Then("the operation should happen in less than 1000 ms");
+#line hidden
+ this.ScenarioCleanup();
+ }
+ }
+}
+#pragma warning restore
+#endregion
Oops, something went wrong.

0 comments on commit a44ea6c

Please sign in to comment.