Skip to content

Instantly share code, notes, and snippets.

@mariomeyrelles
Created December 6, 2018 00:57
Show Gist options
  • Save mariomeyrelles/2d996a322b63e14b85e2ef455c95a5c4 to your computer and use it in GitHub Desktop.
Save mariomeyrelles/2d996a322b63e14b85e2ef455c95a5c4 to your computer and use it in GitHub Desktop.
hkt-3
using LightBDD.Framework;
using LightBDD.Framework.Scenarios.Basic;
using LightBDD.Framework.Scenarios.Extended;
using LightBDD.MsTest2;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace ModeloCozinhaIndustrialExemplo2
{
[TestClass]
[FeatureDescription(
@"In order to prepare an scrambled egg
As an Chef
I want to use the ingredients to prepare the dish")]
[Label("Story-1")]
public partial class PreparacaoOvoMexido_feature
{
[Scenario]
[Label("Scenario-1")]
public void Prepare_Scrambled_Eggs()
{
Runner.RunScenario(
_ => Given_kitchen_is_available(),
_ => Given_chef_is_available("Chef 1"),
_ => When_an_order_arrives_at_the_kitchen("Scrambled Egg"),
_ => Then_dish_must_be_prepared()
);
}
}
}
using LightBDD.Framework;
using LightBDD.Framework.Formatting;
using LightBDD.Framework.Scenarios.Basic;
using LightBDD.MsTest2;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace ModeloCozinhaIndustrialExemplo2
{
public partial class PreparacaoOvoMexido_feature : FeatureFixture
{
private void Given_kitchen_is_available()
{
}
private void Given_chef_is_available(string chefName)
{
}
private void When_an_order_arrives_at_the_kitchen(string order)
{
}
private void Then_dish_must_be_prepared()
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment