public async Task <long> WrongAnswer() { var newScore = _scoreProvider.GetNextScore(); await Clients.Others.SendAsync("SetScore", newScore); return(newScore); }
public void ScoreProvider() { var ss = new StorageService(); var sp = new ScoreProvider(ss); var next = sp.GetNextScore(); Assert.AreEqual(next, sp.GetScore()); }