278 lines
12 KiB
C#
278 lines
12 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by SpecFlow (https://www.specflow.org/).
|
|
// SpecFlow Version:3.7.0.0
|
|
// SpecFlow Generator Version:3.7.0.0
|
|
//
|
|
// 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 UI.Features
|
|
{
|
|
using TechTalk.SpecFlow;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.7.0.0")]
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
public partial class UserAccountFeature : object, Xunit.IClassFixture<UserAccountFeature.FixtureData>, System.IDisposable
|
|
{
|
|
|
|
private static TechTalk.SpecFlow.ITestRunner testRunner;
|
|
|
|
private string[] _featureTags = ((string[])(null));
|
|
|
|
private Xunit.Abstractions.ITestOutputHelper _testOutputHelper;
|
|
|
|
#line 1 "UserAccount.feature"
|
|
#line hidden
|
|
|
|
public UserAccountFeature(UserAccountFeature.FixtureData fixtureData, UI_XUnitAssemblyFixture assemblyFixture, Xunit.Abstractions.ITestOutputHelper testOutputHelper)
|
|
{
|
|
this._testOutputHelper = testOutputHelper;
|
|
this.TestInitialize();
|
|
}
|
|
|
|
public static void FeatureSetup()
|
|
{
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "User Account", "\tFunctions that the user can perform from the account screen", ProgrammingLanguage.CSharp, ((string[])(null)));
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
}
|
|
|
|
public static void FeatureTearDown()
|
|
{
|
|
testRunner.OnFeatureEnd();
|
|
testRunner = null;
|
|
}
|
|
|
|
public virtual void TestInitialize()
|
|
{
|
|
}
|
|
|
|
public virtual void TestTearDown()
|
|
{
|
|
testRunner.OnScenarioEnd();
|
|
}
|
|
|
|
public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
|
|
{
|
|
testRunner.OnScenarioInitialize(scenarioInfo);
|
|
testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs<Xunit.Abstractions.ITestOutputHelper>(_testOutputHelper);
|
|
}
|
|
|
|
public virtual void ScenarioStart()
|
|
{
|
|
testRunner.OnScenarioStart();
|
|
}
|
|
|
|
public virtual void ScenarioCleanup()
|
|
{
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
void System.IDisposable.Dispose()
|
|
{
|
|
this.TestTearDown();
|
|
}
|
|
|
|
[Xunit.SkippableFactAttribute(DisplayName="Enable Tutorial")]
|
|
[Xunit.TraitAttribute("FeatureTitle", "User Account")]
|
|
[Xunit.TraitAttribute("Description", "Enable Tutorial")]
|
|
public virtual void EnableTutorial()
|
|
{
|
|
string[] tagsOfScenario = ((string[])(null));
|
|
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Enable Tutorial", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
|
|
#line 5
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
bool isScenarioIgnored = default(bool);
|
|
bool isFeatureIgnored = default(bool);
|
|
if ((tagsOfScenario != null))
|
|
{
|
|
isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((this._featureTags != null))
|
|
{
|
|
isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((isScenarioIgnored || isFeatureIgnored))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 6
|
|
testRunner.Given("I am logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 7
|
|
testRunner.And("I am on the account screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 8
|
|
testRunner.When("I set the Tutorials option to {true}", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 9
|
|
testRunner.Then("the tutorials should be enabled", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
#line hidden
|
|
}
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[Xunit.SkippableFactAttribute(DisplayName="Disable Tutorial")]
|
|
[Xunit.TraitAttribute("FeatureTitle", "User Account")]
|
|
[Xunit.TraitAttribute("Description", "Disable Tutorial")]
|
|
public virtual void DisableTutorial()
|
|
{
|
|
string[] tagsOfScenario = ((string[])(null));
|
|
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Disable Tutorial", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
|
|
#line 11
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
bool isScenarioIgnored = default(bool);
|
|
bool isFeatureIgnored = default(bool);
|
|
if ((tagsOfScenario != null))
|
|
{
|
|
isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((this._featureTags != null))
|
|
{
|
|
isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((isScenarioIgnored || isFeatureIgnored))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 12
|
|
testRunner.Given("I am logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 13
|
|
testRunner.And("I am on the account screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 14
|
|
testRunner.When("I set the Tutorials option to {false}", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 15
|
|
testRunner.Then("the tutorials should be deactivated", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
#line hidden
|
|
}
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[Xunit.SkippableFactAttribute(DisplayName="User should be able to enter my normal work week")]
|
|
[Xunit.TraitAttribute("FeatureTitle", "User Account")]
|
|
[Xunit.TraitAttribute("Description", "User should be able to enter my normal work week")]
|
|
public virtual void UserShouldBeAbleToEnterMyNormalWorkWeek()
|
|
{
|
|
string[] tagsOfScenario = ((string[])(null));
|
|
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User should be able to enter my normal work week", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
|
|
#line 17
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
bool isScenarioIgnored = default(bool);
|
|
bool isFeatureIgnored = default(bool);
|
|
if ((tagsOfScenario != null))
|
|
{
|
|
isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((this._featureTags != null))
|
|
{
|
|
isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((isScenarioIgnored || isFeatureIgnored))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 18
|
|
testRunner.Given("I am logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 19
|
|
testRunner.And("I am on the Work Week Menu in the account screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 20
|
|
testRunner.When("I add a new entry to the work week", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 21
|
|
testRunner.Then("I should see the date on the calendar", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
#line hidden
|
|
}
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[Xunit.SkippableFactAttribute(DisplayName="User should be able to enter holiday")]
|
|
[Xunit.TraitAttribute("FeatureTitle", "User Account")]
|
|
[Xunit.TraitAttribute("Description", "User should be able to enter holiday")]
|
|
public virtual void UserShouldBeAbleToEnterHoliday()
|
|
{
|
|
string[] tagsOfScenario = ((string[])(null));
|
|
System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("User should be able to enter holiday", null, tagsOfScenario, argumentsOfScenario, this._featureTags);
|
|
#line 23
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
#line hidden
|
|
bool isScenarioIgnored = default(bool);
|
|
bool isFeatureIgnored = default(bool);
|
|
if ((tagsOfScenario != null))
|
|
{
|
|
isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((this._featureTags != null))
|
|
{
|
|
isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any();
|
|
}
|
|
if ((isScenarioIgnored || isFeatureIgnored))
|
|
{
|
|
testRunner.SkipScenario();
|
|
}
|
|
else
|
|
{
|
|
this.ScenarioStart();
|
|
#line 24
|
|
testRunner.Given("I am logged in", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
|
|
#line hidden
|
|
#line 25
|
|
testRunner.And("I am on the Holiday menu in the account screen", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
#line hidden
|
|
#line 26
|
|
testRunner.When("I add a new entry to the holiday tracker", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
#line 27
|
|
testRunner.Then("it should display in the holiday list", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
#line hidden
|
|
}
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.7.0.0")]
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
public class FixtureData : System.IDisposable
|
|
{
|
|
|
|
public FixtureData()
|
|
{
|
|
UserAccountFeature.FeatureSetup();
|
|
}
|
|
|
|
void System.IDisposable.Dispose()
|
|
{
|
|
UserAccountFeature.FeatureTearDown();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endregion
|