Category Archives: Comps

Moq Vs Rhino Mocks

Just some rough notes I made coming from a Moq framework and converting to Rhino Mocks:

read more

Leave a Comment

Filed under Comps

Git: Setup Beyond Compare as Difftool and Mergetool

Change config file

Depending on your Git setup (mines Git for Windows). You’ll need to locate your .gitconfig file (mine’s %userpath%/.gitconfig and make the necessary changes below.

Note that the “prompt = false” stops the Y/N prompt for each difftool file compare in the set. Can also be added as git config –global –add difftool.prompt false read more

Leave a Comment

Filed under Comps

Git, Docker and CR/LF world of pain.

Docker

As part of a project myself and a colleague were about to commence work on he’d created a docker image of a lightweight Linux image serving SFTP endpoints to replicate the Dev eco system. It was working like a dream. We were setting up and tearing down the containers happily until we checked out the docker files on my machine and that’s where the fun started…..

read more

Leave a Comment

Filed under Comps

Moq – Mocking a cast on an interface

Mocking a Cast on a Mocked Interface

The Setup

var mockedInterface = new Mock<IInterface>();
mockedInterface.As().Setup(i => i.MethodOnTheInterface());

Easy as that!

Leave a Comment

Filed under Comps

British Sea Power – Hebden Bridge Trades Club – 28th July 2017

A wet July day

Off the train at Hebden Bridge at around 7 to be met by a torrent of rain. Dashing down the high street and into the new (?) Vocation pub where we meet up with the usual crew for a rather splendid pre-gig ale.

read more

Leave a Comment

Filed under Comps