Skip to content

Instantly share code, notes, and snippets.

Avatar

Urs Enzler ursenzler

View GitHub Profile
@ursenzler
ursenzler / FsharpFluentAssertionsExtensions
Created Feb 11, 2021
Our wrappers around FluentAssertions to make them simpler to use from F# code.
View FsharpFluentAssertionsExtensions
[<AutoOpen>]
module FluentAssertionsExtensionMethods
open System
open System.Collections
open System.Runtime.CompilerServices
open FluentAssertions
open FluentAssertions.Collections
open FluentAssertions.Equivalency
open FluentAssertions.Numeric
@ursenzler
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)
{
View FakeItEasy.Specs.md

Fake It Easy Specs

Asserting On Set Only Properties

Set Only Properties

  • establish
  • when assertion on set only properties
@ursenzler
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
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
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
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
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
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