예제 #1
0
        public void ReturnStoredMatchResult()
        {
            db.AddMatchInfo(match);

            var result = handler.GetMatchResult(match.endpoint, match.timestamp);

            result.ShouldBeEquivalentTo(match.result);
        }
예제 #2
0
        public bool TryPutMatch(MatchInfo match)
        {
            if (database.GetServerInfo(match.endpoint) == null)
            {
                return(false);
            }

            database.AddMatchInfo(match);
            return(true);
        }