public void ItShouldGetItemsFromTheDatabase()
        {
            var context = new LocalContext();

            var sampleItems = context.Set <SampleItem>()
                              .ToList();

            sampleItems.Should().NotBeEmpty();
        }
Exemple #2
0
 public GenericRepositoryForLocal(LocalContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
 public IQueryable <T> GetAll()
 {
     return(_localContext.Set <T>());
 }