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(); }
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); }