public void SaveMatchResult() { db.UpsertServerInfo(server); var result = handler.TryPutMatch(match); result.Should().BeTrue(); var r = db.GetMatchInfo(match.endpoint, match.timestamp); r.ShouldBeEquivalentTo(match); }
public MatchResult GetMatchResult(string endpoint, DateTime timestamp) { return(database.GetMatchInfo(endpoint, timestamp)?.result); }