public void Render(EndOfGameNotification DomainEvent) { switch (DomainEvent.endOfGameStatus) { case EndOfGameStatus.Equality: { Console.WriteLine("Égalité!"); } break; case EndOfGameStatus.APlayerWins: { Console.WriteLine(String.Format("Vainqueur : {0}", DomainEvent.winnerPlayerCode)); } break; } }
public void Handle(EndOfGameNotification DomainEvent) { this.gameView.Render(DomainEvent); }