mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
added gerken
This commit is contained in:
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"alexkrechik.cucumberautocomplete"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"cucumberautocomplete.steps": [
|
||||||
|
"./Management.Gherkin/**/*.cs"
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
1
Management.Gherkin/.gitignore
vendored
Normal file
1
Management.Gherkin/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.feature.cs
|
||||||
9
Management.Gherkin/Drivers/Driver.cs
Normal file
9
Management.Gherkin/Drivers/Driver.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Management.Gherkin.Drivers
|
||||||
|
{
|
||||||
|
public class Driver
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
13
Management.Gherkin/Features/Calculator.feature
Normal file
13
Management.Gherkin/Features/Calculator.feature
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Feature: Calculator
|
||||||
|

|
||||||
|
Simple calculator for adding **two** numbers
|
||||||
|
|
||||||
|
Link to a feature: [Calculator]($projectname$/Features/Calculator.feature)
|
||||||
|
***Further read***: **[Learn more about how to generate Living Documentation](https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/Generating-Documentation.html)**
|
||||||
|
|
||||||
|
@mytag
|
||||||
|
Scenario: Add two numbers
|
||||||
|
Given the first number is 50
|
||||||
|
And the second number is 70
|
||||||
|
When the two numbers are added
|
||||||
|
Then the result should be 120
|
||||||
11
Management.Gherkin/Hooks/Hook.cs
Normal file
11
Management.Gherkin/Hooks/Hook.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
using System;
|
||||||
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
|
namespace Management.Gherkin.Hooks
|
||||||
|
{
|
||||||
|
[Binding]
|
||||||
|
public class Hooks
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
16
Management.Gherkin/Management.Gherkin.csproj
Normal file
16
Management.Gherkin/Management.Gherkin.csproj
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
|
||||||
|
<PackageReference Include="SpecFlow.Plus.LivingDocPlugin" Version="3.9.*" />
|
||||||
|
<PackageReference Include="SpecFlow.NUnit" Version="3.9.74" />
|
||||||
|
<PackageReference Include="NUnit" Version="3.13.3" />
|
||||||
|
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
|
||||||
|
<PackageReference Include="FluentAssertions" Version="6.8.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
58
Management.Gherkin/Steps/CalculatorStepDefinitions.cs
Normal file
58
Management.Gherkin/Steps/CalculatorStepDefinitions.cs
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
|
namespace Management.Gherkin.Steps
|
||||||
|
{
|
||||||
|
[Binding]
|
||||||
|
public sealed class CalculatorStepDefinitions
|
||||||
|
{
|
||||||
|
|
||||||
|
// For additional details on SpecFlow step definitions see https://go.specflow.org/doc-stepdef
|
||||||
|
|
||||||
|
private readonly ScenarioContext _scenarioContext;
|
||||||
|
|
||||||
|
public CalculatorStepDefinitions(ScenarioContext scenarioContext)
|
||||||
|
{
|
||||||
|
_scenarioContext = scenarioContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Given("the first number is (.*)")]
|
||||||
|
public void GivenTheFirstNumberIs(int number)
|
||||||
|
{
|
||||||
|
//TODO: implement arrange (precondition) logic
|
||||||
|
// For storing and retrieving scenario-specific data see https://go.specflow.org/doc-sharingdata
|
||||||
|
// To use the multiline text or the table argument of the scenario,
|
||||||
|
// additional string/Table parameters can be defined on the step definition
|
||||||
|
// method.
|
||||||
|
|
||||||
|
_scenarioContext.Pending();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Given("the second number is (.*)")]
|
||||||
|
public void GivenTheSecondNumberIs(int number)
|
||||||
|
{
|
||||||
|
//TODO: implement arrange (precondition) logic
|
||||||
|
// For storing and retrieving scenario-specific data see https://go.specflow.org/doc-sharingdata
|
||||||
|
// To use the multiline text or the table argument of the scenario,
|
||||||
|
// additional string/Table parameters can be defined on the step definition
|
||||||
|
// method.
|
||||||
|
|
||||||
|
_scenarioContext.Pending();
|
||||||
|
}
|
||||||
|
|
||||||
|
[When("the two numbers are added")]
|
||||||
|
public void WhenTheTwoNumbersAreAdded()
|
||||||
|
{
|
||||||
|
//TODO: implement act (action) logic
|
||||||
|
|
||||||
|
_scenarioContext.Pending();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Then("the result should be (.*)")]
|
||||||
|
public void ThenTheResultShouldBe(int result)
|
||||||
|
{
|
||||||
|
//TODO: implement assert (verification) logic
|
||||||
|
|
||||||
|
_scenarioContext.Pending();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
Management/Features/Calendar/CalendarMonth.cs
Normal file
4
Management/Features/Calendar/CalendarMonth.cs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
public class CalendarMonth
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user