TheCoffeeMachineIsStarted() public method

public TheCoffeeMachineIsStarted ( ) : void
return void
 public void SimpleUse()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // When I take a coffee
     Actionwords.ITakeACoffee();
     // Then coffee should be served
     Actionwords.CoffeeShouldBeServed();
 }
 public void DisplaySettings()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // When I switch to settings mode
     Actionwords.ISwitchToSettingsMode();
     // Then displayed message is:
     Actionwords.DisplayedMessageIs("Settings:\n - 1: water hardness\n - 2: grinder");
 }
 public void NoMessagesAreDisplayedWhenMachineIsShutDown()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // When I shutdown the coffee machine
     Actionwords.IShutdownTheCoffeeMachine();
     // Then message "" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed("");
 }
Example #4
0
        protected void SetUp()
        {
            Actionwords = new Actionwords();

            // Given the coffee machine is started
            Actionwords.TheCoffeeMachineIsStarted();
            // And I handle everything except the grounds
            Actionwords.IHandleEverythingExceptTheGrounds();
        }
Example #5
0
 public void FullGroundsDoesNotBlockCoffee()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // And I handle everything except the grounds
     Actionwords.IHandleEverythingExceptTheGrounds();
     // When I take "50" coffees
     Actionwords.ITakeCoffeeNumberCoffees(50);
     // Then message "Empty grounds" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed("Empty grounds");
     // And coffee should be served
     Actionwords.CoffeeShouldBeServed();
 }
Example #6
0
 public void TheCoffeeMachineIsStarted()
 {
     Actionwords.TheCoffeeMachineIsStarted();
 }