public Game Update(GameStatus newStatus, IReadOnlyCollection <PlayEvent> newActions, DateTimeOffset updatedAt) { var newHistory = History.Concat(newActions).ToList(); return(new Game(newStatus, newHistory, updatedAt)); }
private Game(GameStatus status, IReadOnlyCollection <PlayEvent> history, DateTimeOffset lastUpdated) { Status = status; History = history; LastUpdated = DateTimeOffset.Now; }