public static HoleStatistics CreateHoleStatistics(Hole hole) { return new HoleStatistics { Hole = hole, Month = DateTime.Today.Month, Year = DateTime.Today.Year, Attempts = 10, ShotsMade = 5, ShootingPercentage = .500M, PointsScored = 12, Pushes = 3, Steals = 2, SugarFreeSteals = 1 }; }
public void Should_be_able_to_add_hole_statistics() { var hole = ObjectMother.CreateHole(Int32.MaxValue); _holeRepository.Add(hole); var holeStatistics = ObjectMother.CreateHoleStatistics(hole); _holeStatisticsRepository.Add(holeStatistics); Assert.AreNotEqual(0, holeStatistics.Id); }