Skip to content

Instantly share code, notes, and snippets.

View Jacob-McKay's full-sized avatar

Jacob McKay Jacob-McKay

  • Moobware
  • Milwaukee, WI
View GitHub Profile
@Jacob-McKay
Jacob-McKay / ExampleTest.cs
Created July 26, 2019 22:26
Moq extension to cleanly make assertions about arguments passed to mock dependencies
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Moq;
using Xunit;
namespace UnitTests
{
@Jacob-McKay
Jacob-McKay / DontInheritFromDocument.cs
Last active April 13, 2018 19:32
Don't extend Document... Just don't.
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp1