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
using System; | |
using System.Collections.Generic; | |
using System.Net.Security; | |
using System.Security.Authentication; | |
using System.Threading.Tasks; | |
using Autofac; | |
using Autofac.Core; | |
using GreenPipes; | |
using MassTransit; | |
using MassTransit.ConsumeConfigurators; |
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
public class RetryConsumerFilterSpecs | |
{ | |
[Subject("Message Retry")] | |
public class when_a_handler_throws_an_exception_that_should_not_be_retried | |
{ | |
static Action<IConsumeContext<string>> _nextStub; | |
static RetryConsumerFilter _filter; | |
static Exception _exception; | |
static Spy<IConsumeContext<string>> _consumeContextSpy; |
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
public class InMemorySqliteDatabaseInitializer<TContext> : SqliteInitializerBase<TContext> | |
where TContext : DbContext | |
{ | |
public InMemorySqliteDatabaseInitializer(DbModelBuilder modelBuilder) | |
: base(modelBuilder) | |
{ | |
} | |
public override void InitializeDatabase(TContext context) |
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
☺ DGreer@DEREKGREER /projects/Spikes/gulpSamples | |
$ npm install gulp --save-dev | |
[email protected] node_modules\gulp | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] ([email protected]) |
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
public class UserServiceSpecs | |
{ | |
[Subcutaneous] | |
public class when_creating_an_inactive_account : SubjectBuilderContext | |
{ | |
const string UserName = "testuser"; | |
static AccountInfo _accountInfo; | |
static ExpectedObject _expectedUser; | |
static IUserService _userService; | |
Cleanup after = () => DnxDatabase.DeleteUser(UserName); |
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
_expectedPaymentAccountingTransaction = new | |
{ | |
Amount = Expect.Any<decimal>(amount => amount == _paymentEvent.Amount) | |
}.ToExpectedObject(); |
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
public class NodaDb<TKey, TValue> : Dictionary<TKey, TValue> | |
{ | |
} |
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/bash | |
while (( 1 )) | |
do | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
CHANGES=$(git status --porcelain) | |
if [[ "${CHANGES}" != "" && "${BRANCH}" != "master" ]] | |
then |
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
[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 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 |
NewerOlder