public void ItShouldGetItemsFromTheDatabase() { var context = new LocalContext(); var sampleItems = context.Set <SampleItem>() .ToList(); sampleItems.Should().NotBeEmpty(); }
public GenericRepositoryForLocal(LocalContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public IQueryable <T> GetAll() { return(_localContext.Set <T>()); }