public void CanReadAll() { using (var data = new DbTestData()) { var votes = dal.ReadAll(); votes.Should().NotBeNullOrEmpty(); votes.Should().HaveCountGreaterOrEqualTo(2); } }
public List <Vote> GetAll() { return(_votesDAL.ReadAll()); }