public void ReturnStoredMatchResult() { db.AddMatchInfo(match); var result = handler.GetMatchResult(match.endpoint, match.timestamp); result.ShouldBeEquivalentTo(match.result); }
public bool TryPutMatch(MatchInfo match) { if (database.GetServerInfo(match.endpoint) == null) { return(false); } database.AddMatchInfo(match); return(true); }