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
[Subject(typeof (FluSectionResultGenerator))] | |
public class when_applicant_provides_information_indicating_flu_susceptibility : given_a_generator_context | |
{ | |
Because of = () => Generator.Run(new[] {new Question("Do you have issues?") {Answer = true},}); | |
It should_reflect_susceptibility_to_the_flu = () => FileSystemMock.Verify(x => x.Read( "a/b/c/susceptable.txt")); | |
} | |
[Subject(typeof (FluSectionResultGenerator))] | |
public class when_applicant_provides_no_information_indicating_flu_susceptibility : given_a_generator_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
public class when_asserting_unsorted_comments_are_sorted_in_descending_order | |
{ | |
static Exception _exception; | |
static List<Comment> _unsortedComments; | |
Establish context = () => | |
{ | |
_unsortedComments = new List<Comment> | |
{ | |
new Comment("comment 1", DateTime.MinValue.AddDays(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
sh "#{WEB_PACKAGE_LOCATION}/#{PROJECT_NAME}.deploy.cmd /M:localhost /Y \"-skip:objectName=dirPath,skipAction=Delete,absolutePath=logs\"" |
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.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
namespace Monarchy { | |
public class ObjectFactory { | |
static readonly IDictionary<Type, Func<object>> Container = new Dictionary<Type, Func<object>>(); | |
public T Get<T>() { |
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 Machine.Specifications; | |
namespace Monarchy.Specs | |
{ | |
[Subject(typeof(ObjectFactory))] | |
public class when_retrieving_a_type_with_registered_dependency_factory | |
{ | |
static TestService _instance; | |
static ObjectFactory _factory; |
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
#!/bin/bash | |
declare -a SOLUTIONS=$(find . -name "*.sln") | |
declare -a PROJECTS=$(find . -name "*.csproj") | |
for PROJECT in ${PROJECTS[*]} | |
do | |
PROJECT_NAME=$(basename $PROJECT) | |
USED=0 |
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
def which(cmd) | |
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] | |
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| | |
exts.each { |ext| | |
sep = File::ALT_SEPARATOR || File::SEPARATOR | |
exe = "#{path}#{sep}#{cmd}#{ext}" | |
return exe if File.executable? exe | |
} | |
end | |
return nil |
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
[Integration] | |
[Subject(typeof (RabbitBus))] | |
public class when_subscribing_to_receive_a_message_type_without_an_explicit_subscription_registration | |
{ | |
Establish context; | |
Because of; | |
It should_subscribe_with_the_default_registration_conventions = () => _actualMessage.ShouldEqual(_expectedMessage); | |
} |
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
#!/bin/bash | |
while (( 1 )) | |
do | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
CHANGES=$(git status --porcelain) | |
if [[ "${CHANGES}" != "" && "${BRANCH}" != "master" ]] | |
then |
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 NodaDb<TKey, TValue> : Dictionary<TKey, TValue> | |
{ | |
} |
OlderNewer