CreateRanking() public static method

public static CreateRanking ( BolfTracker.Models.Player player ) : BolfTracker.Models.Ranking
player BolfTracker.Models.Player
return BolfTracker.Models.Ranking
        public void Should_be_able_to_add_ranking()
        {
            var player = ObjectMother.CreatePlayer();

            _playerRepository.Add(player);

            var ranking = ObjectMother.CreateRanking(player);

            _rankingRepository.Add(ranking);

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