This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CD %systemroot%\system32\inetsrv | |
REM Add a new site and enable Windows authentication | |
MKDIR C:\Blogs | |
APPCMD add site /name:Blogs /bindings:"http/*:81:" /physicalPath:"C:\Blogs" | |
APPCMD set config "Blogs" -section:system.webServer/security/authentication/windowsAuthentication /enabled:"True" /commit:apphost | |
REM Create a virtual directory | |
MKDIR C:\Blogs\Technology | |
APPCMD add vdir /app.name:"Blogs/" /path:/Technology /physicalPath:C:\Blogs\Technology |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Execute this script from the content/themes directory. | |
# This script copies the Casper theme in the "Casper" directory | |
# to a new directory with the new theme name. Then it creates | |
# a .zip file with the new directory's contents. | |
# New theme name. Update if you aren't Joe Buschmann :-) | |
THEME_NAME="Casper-JoeBuschmann" | |
readonly THEME_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Calculator | |
In order to avoid silly mistakes | |
As a math idiot | |
I want to be told the sum of two numbers | |
Scenario: Add two numbers | |
Given I have entered 50 into the calculator | |
And I have entered 70 into the calculator | |
When I press add | |
Then the result should be 120 on the screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class CalculatorSteps | |
{ | |
private const string CalculatorValues = "calculatorValues"; | |
private const string CalculationResult = "calculationResult"; | |
[Given(@"I have entered (.*) into the calculator")] | |
public void GivenIHaveEnteredIntoTheCalculator(int num) | |
{ | |
List<int> values; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class CalculatorSteps | |
{ | |
private readonly List<int> _values = new List<int>(); | |
private int _result; | |
[Given(@"I have entered (.*) into the calculator")] | |
public void GivenIHaveEnteredIntoTheCalculator(int num) | |
{ | |
_values.Add(num); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class CalculatorSteps | |
{ | |
private readonly CalculatorContext _calculatorContext; | |
public ContextObjectSteps(CalculatorContext calculatorContext) | |
{ | |
_calculatorContext = calculatorContext; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
public class CalculatorSteps | |
{ | |
private readonly Calculator _calculator; | |
public DomainObjectSteps(Calculator calculator) | |
{ | |
_calculator = calculator; | |
} |
OlderNewer