Exemplo n.º 1
0
        public async Task GetScoreByPlayer_When_Player_Is_Unknown_Then_Return_Null()
        {
            var player = "Unknown";

            var repo = new ScoresRepository();

            var score = await repo.GetScoreByPlayer(player);

            score.Should().BeNull();
        }
Exemplo n.º 2
0
        public async Task GetScoreByPlayer_When_Player_Exists_Then_Return_Score()
        {
            var player = "Jonny";

            var repo = new ScoresRepository();

            var score = await repo.GetScoreByPlayer(player);

            score.Should().NotBeNull();
            score.Score.Should().Be(5);
            score.Player.Should().Be(player);
        }