CreateHoleStatistics() public static method

public static CreateHoleStatistics ( BolfTracker.Models.Hole hole ) : BolfTracker.Models.HoleStatistics
hole BolfTracker.Models.Hole
return BolfTracker.Models.HoleStatistics
コード例 #1
0
        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);
        }