Пример #1
0
        public async Task <long> WrongAnswer()
        {
            var newScore = _scoreProvider.GetNextScore();
            await Clients.Others.SendAsync("SetScore", newScore);

            return(newScore);
        }
Пример #2
0
        public void ScoreProvider()
        {
            var ss   = new StorageService();
            var sp   = new ScoreProvider(ss);
            var next = sp.GetNextScore();

            Assert.AreEqual(next, sp.GetScore());
        }