Skip to content

Instantly share code, notes, and snippets.


Urs Enzler ursenzler

View GitHub Profile
ursenzler / FsharpFluentAssertionsExtensions
Created Feb 11, 2021
Our wrappers around FluentAssertions to make them simpler to use from F# code.
View FsharpFluentAssertionsExtensions
module FluentAssertionsExtensionMethods
open System
open System.Collections
open System.Runtime.CompilerServices
open FluentAssertions
open FluentAssertions.Collections
open FluentAssertions.Equivalency
open FluentAssertions.Numeric
ursenzler / SemaphoreUsage.cs
Last active May 1, 2018 — forked from danielmarbach/Usage.cs
Simple Semaphore Usage
View SemaphoreUsage.cs
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Semaphore
class Program
static void Main(string[] args)

Fake It Easy Specs

Asserting On Set Only Properties

Set Only Properties

  • establish
  • when assertion on set only properties
ursenzler / SetupAppccelerateUrsEnzler.ps1
Created Dec 2, 2014
Setup PS to work with my forks of Appccelerate repositories
View SetupAppccelerateUrsEnzler.ps1
cd C:\Projects\appccelerate\ursenzler_repos
Import-Module C:\projects\appccelerate\ursenzler_repos\scripts\Appccelerate.ps1 -DisableNameChecking
ursenzler / SetupAppccelerateMain.ps1
Created Dec 2, 2014
Setup PS for working with Appccelerate main repositories
View SetupAppccelerateMain.ps1
cd C:\Projects\appccelerate\repos
Import-Module C:\projects\appccelerate\repos\scripts\Appccelerate.ps1 -DisableNameChecking
ursenzler / nuget_update
Created Apr 8, 2014
executes nuget update on all Appccelrate repos
View nuget_update
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
cd $scriptPath
$solutions = Get-ChildItem $scriptPath -Recurse -Filter *.sln
foreach($solution in $solutions)
write-host $solution.FullName
$packagesFolder = (Split-Path -parent $solution.FullName) + "\packages"
ursenzler / git_pull
Created Apr 8, 2014
executes git pull on all Appccelerate repos
View git_pull
. .\ExecuteOnRepos.ps1
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
cd $scriptPath
ExecuteOnRepos $scriptPath "git" "pull"
ursenzler / ExecuteOnRepos
Created Apr 8, 2014
executes a command on all Appccelerate repos
View ExecuteOnRepos
function ExecuteOnRepos([string]$reposPath, [string]$command, [string]$arguments)
$folders = Get-ChildItem $reposPath | ?{ $_.PSIsContainer } | Select-Object FullName
foreach($folder in $folders)
cd $folder.FullName
$gitFolder = $folder.FullName + "\.git"
if (Test-Path $gitFolder)
ursenzler / gist:3103750
Created Jul 13, 2012
Prototype of Appccelerate feature management
View gist:3103750
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FreakyFeatureManagement
using Appccelerate.EvaluationEngine;
class Program