CSLA, Winforms and unit testing

CSLA, Winforms and unit testing

Old forum URL: forums.lhotka.net/forums/t/9056.aspx


cmay posted on Wednesday, June 09, 2010

I've been using csla with the MVP patter in my web forms and been doing unit testing on the presenter.

I'm now undertaking a winform app, and I've never written a winform app w/ CSLA where I've done any unit testing (it's been a long time since I did a large winform app).

Is there any benefit to using MVC or MVP with my winform app when it comes to unit testing? 

Unlike webforms, with winforms I think my unit test can just instantiate my forms and do things like click buttons and whatever, unlike with webforms.

The binding in winforms is also much tighter than with webforms, so I'm guessing I'll have lots more DataSource = X, and less view.txtLasntNameText = x.Last.

I'm hoping that someone (or maybe a few people) here are doing winforms with CSLA, DataBinding and unit tests and can give me some advice as to the best path to take.

Copyright (c) Marimer LLC