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); }
/// <summary> /// Returns all the laps. /// </summary> /// <returns></returns> public List <T> GetAll() { return(_publicGenerator.GetAllLaps()); }