CreateHoleStatistics() 공개 정적인 메소드

public static CreateHoleStatistics ( BolfTracker.Models.Hole hole ) : BolfTracker.Models.HoleStatistics
hole BolfTracker.Models.Hole
리턴 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);
        }