thank you , this is good enough to start using MVP design pattern. more examples on MVP please.
@MattyBGAMINGUK
2 ай бұрын
This is great and I've just implemented this in an application I'm creating. Just one thing, would it make sense to have errors raised as an event? Then a form could subscribe and show a message box, and a test could check for the error message
@vbachris
Ай бұрын
You could, if you wanted that much Presenter to Form feedback. I would prefer to KISS as much as possible.
@mrgongo4253
27 күн бұрын
Where is the SaveAttempted method coming from?? edit: where is it implemented?
@NoOne-wf6hm
Жыл бұрын
Greetings C S Hayes. Thank you for providing this tutorial. I am learning.. So forgive my ignorance... Can you please explain what happens on: 5:50 ? You end up with a Test. To me: nothing happens.
@vbachris
Жыл бұрын
you will have to run the tests, you can do this by opening the Test Explorer. Sorry I didn't explain that in the video. See this for info on how to use the Test Explorer learn.microsoft.com/en-us/visualstudio/test/run-unit-tests-with-test-explorer?view=vs-2022
@pargyropoulos
Жыл бұрын
the github link doesn't work
@vbachris
Жыл бұрын
well, i made the repo private for some reason. it's back to public. sorry
@ragtop63
5 ай бұрын
Very interesting. Personally, I like the views to be completely ignorant of the presenter.
@vbachris
Ай бұрын
Yes but there's always tradeoffs and overkill. keeping the presenter agnostic to the form is usually the best payoff. you can test business logic in presenter without having to be concerned about the view.
Пікірлер: 10