feat: Setup MVP

This commit is contained in:
Gerard Gascón 2024-04-12 16:25:32 +02:00
parent 14fdd4558e
commit 1dd490b7ed
27 changed files with 555 additions and 52 deletions

View file

@ -0,0 +1,18 @@
using Domain;
namespace Presenter {
public class CTrencadaClick {
private readonly Model _model;
private readonly ICTrencadaInput _view;
public CTrencadaClick(Model model, ICTrencadaInput view) {
_model = model;
_view = view;
}
public void Execute() {
_model.AddScore(1);
_view.UpdateView(_model.Score);
}
}
}