Skip to content

Instantly share code, notes, and snippets.

@Windsooon
Windsooon / leetcode_retag.md
Last active May 6, 2024 16:02
Retag most popular Leetcode problems

osjobs

海外兔

website

@LukeWinikates
LukeWinikates / FakeDbSet.cs
Created October 24, 2011 16:31
An implementation of IDbSet to help with mocking Entity Framework DbContexts.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EntityExtensions {
public class FakeDbSet<T> : System.Data.Entity.IDbSet<T> where T : class {
private readonly List<T> list = new List<T>();
public FakeDbSet() {