Skip to content

Instantly share code, notes, and snippets.

View mlowen's full-sized avatar

Mike Lowen mlowen

View GitHub Profile
public class InMemoryDbSet<T> : IDbSet<T> where T : class
{
readonly HashSet<T> _set;
readonly IQueryable<T> _queryableSet;
public InMemoryDbSet() : this(Enumerable.Empty<T>()) { }
public InMemoryDbSet(IEnumerable<T> entities) {