public FakeSet(IEnumerable <T> values, DbContextFakeWrapper wrapper) { this.wrapper = wrapper; this.values.AddRange(values); }
public static DbSet <T> MockDbSet <T>(this IEnumerable <T> values, DbContextFakeWrapper wrapper) where T : class { return(new FakeSet <T>(values, wrapper)); }