public void WhenGetAllFromEmptyDatabase_ThenReturnsEmptyCollection() { var repository = new PageTemplateRepository(new DatabaseFactory()); IEnumerable<PageTemplate> actual = repository.GetAll(); Assert.NotNull(actual); var actualList = new List<PageTemplate>(actual); Assert.Equal(0, actualList.Count); }
public IQueryable <PageTemplate> GetAll() { return(_pageTemplateRepository.GetAll()); }