示例#1
0
        public void CanReadAll()
        {
            using (var data = new DbTestData())
            {
                var votes = dal.ReadAll();

                votes.Should().NotBeNullOrEmpty();
                votes.Should().HaveCountGreaterOrEqualTo(2);
            }
        }
示例#2
0
 public List <Vote> GetAll()
 {
     return(_votesDAL.ReadAll());
 }