This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Runtime.CompilerServices; | |
using System.Xml.Linq; | |
using static Bullseye.Targets; | |
using static SimpleExec.Command; | |
namespace build |
This file contains hidden or 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
param( | |
$configuration = "Debug" | |
) | |
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.xml.linq") | |
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path | |
Set-Location $ScriptDir | |
$doc = [System.Xml.Linq.XDocument]::Parse([System.IO.File]::ReadAllText("$ScriptDir/xunit-results-xbehave.xml")) |
This file contains hidden or 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
public class ExampleAutoDataSpecimenBuilder : ISpecimenBuilder | |
{ | |
private readonly object[] _data; | |
public ExampleAutoDataSpecimenBuilder(object[] data) | |
{ | |
_data = data; | |
} | |
public object Create(object request, ISpecimenContext context) |
This file contains hidden or 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
#!/usr/bin/env sh | |
wget https://dl.eff.org/certbot-auto | |
chmod +x certbot-auto | |
unset PYTHON_INSTALL_LAYOUT | |
pip install virtualenv --upgrade --user | |
# Remove old installation | |
rm -rf ~/.local/share/letsencrypt |
This file contains hidden or 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
Given a customer is on the Amazon homepage | |
And they have a prime membership | |
When the customer searches for goods | |
Then a Prime delivery option should be displayed | |
Given a customer is on the Amazon homepage | |
And they do not have a prime membership | |
When the customer searches for goods | |
Then a Prime delivery option should not be displayed |
This file contains hidden or 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
Given a context | |
When an action occurs | |
Then there is an observable outcome |
This file contains hidden or 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
public class QueryProcessorInstaller : IWindsorInstaller | |
{ | |
public void Install(IWindsorContainer container, IConfigurationStore store) | |
{ | |
container.AddFacility<TypedFactoryFacility>(); | |
container.Register( | |
Component.For(typeof(IQueryProcessor)) | |
.AsFactory(c => c.SelectedWith(new QueryProcessorFactorySelector())) | |
.LifestyleTransient()); |
This file contains hidden or 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
print ", ".join(["FizzBuzz" if i % 15 == 0 else "Fizz" if i % 5 == 0 else "Buzz" if i % 3 == 0 else str(i) for i in range(15+1)]) |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Web; | |
using System.Web.Mvc; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using Castle.Windsor.Installer; | |
using WednesdayFootball.Factory; |