public void Handle(string aggregateId, MakeGuess command) { Aggregate newGame = repo.Restore(aggregateId) ?? new Aggregate(new Game()); command.Handle(newGame.Game); repo.Save(newGame); eventBus.Emit(newGame.UncomittedEvents); }
private void button1_Click(object sender, EventArgs e) { MakeGuess?.Invoke(this, e); }