Skip to content

Instantly share code, notes, and snippets.

View msell's full-sized avatar

Matt Sell msell

View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace PokerKata.Test
{
[TestFixture]
public class given_that_hand_consitsts_of_one_card
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace Rover.Tests
{
[TestFixture]
@msell
msell / WF4_Tests.cs
Created July 17, 2012 14:16
Testing WF4 using MOQ
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.Activities.Extensions;
using Microsoft.Activities.UnitTesting;
using Moq;
using NUnit.Framework;
using Rhino.Commons;
@msell
msell / WindowsServiceDohickey.cs
Created August 29, 2012 04:54
fun with windows services
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Principal;
using System.ServiceProcess;
using System.Text;
using Microsoft.Win32;
@msell
msell / LiveStreamingController.cs
Last active December 12, 2015 02:38
example of how to stop the streaming
using System.Web.Mvc;
namespace MvcApplication2.Controllers
{
public class LiveStreamingController : Controller
{
public ActionResult Index(string id)
{
var vm = new ViewModel { VehicleName = id };
return View(vm);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Headspring;
using Machine.Fakes;
using Machine.Specifications;
using Microsoft.Build.Tasks.Deployment.Bootstrapper;
using Moq;
[Subject("Domain Events: Raising an event")]
public class Raising_an_event
{
public class When_an_event_publisher_is_not_defined
{
Because of = ()
=> new TestDomainObject().Start();
It Should_do_nothing = () => { };
}
@msell
msell / boxstarter.config
Last active August 29, 2015 14:01
boxstarter.config
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
cinst git.install
cinst fiddler4
cinst git-credential-winstore
cinst console-devel
cinst sublimetext2
cinst poshgit
cinst dotpeek
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
Disable-UAC
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Set-TaskbarOptions -Lock -Dock Left
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"