示例#1
0
        public void GetAll_Returns_What_It_Gets_Successfully()
        {
            var mockReturn = new List <Lap>();

            _mock.GetAllLaps().Returns(mockReturn);
            var repository = new Repository <Lap>(_mock);

            repository.GetAll().Should().AllBeEquivalentTo(mockReturn);
        }
示例#2
0
 /// <summary>
 /// Returns all the laps.
 /// </summary>
 /// <returns></returns>
 public List <T> GetAll()
 {
     return(_publicGenerator.GetAllLaps());
 }