CreateShot() public static method

public static CreateShot ( BolfTracker.Models.Game game, BolfTracker.Models.Player player, BolfTracker.Models.ShotType shotType, BolfTracker.Models.Hole hole ) : BolfTracker.Models.Shot
game BolfTracker.Models.Game
player BolfTracker.Models.Player
shotType BolfTracker.Models.ShotType
hole BolfTracker.Models.Hole
return BolfTracker.Models.Shot
        public void Should_be_able_to_add_score()
        {
            var game = ObjectMother.CreateGame();

            _gameRepository.Add(game);

            var player = ObjectMother.CreatePlayer();

            _playerRepository.Add(player);

            var shotType = ObjectMother.CreateShotType();

            _shotTypeRepository.Add(shotType);

            var hole = ObjectMother.CreateHole(Int32.MaxValue);

            _holeRepository.Add(hole);

            var shot = ObjectMother.CreateShot(game, player, shotType, hole);

            _shotRepository.Add(shot);

            Assert.AreNotEqual(0, shot.Id);
        }