I want to start building more testable web apps, unfortunately I am not able to go with Microsofts MVC framework just yet. So I am looking advice. What UI pattern do you guys use with asp.net apps, and how do you implement them?
我想开始构建更多可测试的Web应用程序,遗憾的是我还没有能够使用Microsofts MVC框架。所以我在寻求建议。你们使用asp.net应用程序的UI模式,以及如何实现它们?
I do understand patterns like MVP, MVC, etc., but I don't have any experience implementing them, so any input is much appreciated.
我确实理解像MVP,MVC等模式,但我没有任何实现它们的经验,所以任何输入都非常感激。
Best regards, Egil.
最好的问候,埃吉尔。
5 个解决方案
#1
2
I´m still using "old fashioned" web forms, but I try to keep as much logic as possible away from the code behind files, and instead have business/domain logic in a separate layer, and a facade class between that and the presentation layer (remote facade if it´s a service).
我仍在使用“老式”Web表单,但我尽量保留尽可能多的逻辑,远离文件后面的代码,而是将业务/域逻辑放在一个单独的层中,并在它和表示之间建立一个Facade类图层(远程外观,如果它是服务)。
#2
0
If you want something quick and dirty, still using WebForms while getting all the advantages of separating your presentation code from the rest of your application, I've used the following technique which works fine.
如果你想要快速和肮脏的东西,仍然使用WebForms同时获得将表示代码与应用程序的其余部分分开的所有优点,我使用了以下技术,它可以正常工作。
http://www.duncangunn.me.uk/dasblog/2008/03/02/WebFormsMVCOnTheCheap.aspx
This allows me to 'drive' my app using unit tests. It's anything but perfect, but I've used it in a couple of apps now and has been a success.
这允许我使用单元测试来“驱动”我的应用程序。它不是完美的,但我现在已经在几个应用程序中使用它并取得了成功。
#3
0
I use the new Asp.net MVC framework more and more, I really don't like the HTML and viewstate soup Webforms tend to create...
我越来越多地使用新的Asp.net MVC框架,我真的不喜欢HTML和viewstate汤Webforms倾向于创建...
#4
0
asp.net model view presenter (supervising controller) method has worked for me. also looking at asp.net mvc too
asp.net模型视图演示者(监督控制器)方法对我有用。也在看asp.net mvc
#5
0
I've used the FrontContoller pattern on a number of projects, which works well, and is pretty testable too.
我在许多项目中都使用了FrontContoller模式,这种模式效果很好,而且非常可测试。
#1
2
I´m still using "old fashioned" web forms, but I try to keep as much logic as possible away from the code behind files, and instead have business/domain logic in a separate layer, and a facade class between that and the presentation layer (remote facade if it´s a service).
我仍在使用“老式”Web表单,但我尽量保留尽可能多的逻辑,远离文件后面的代码,而是将业务/域逻辑放在一个单独的层中,并在它和表示之间建立一个Facade类图层(远程外观,如果它是服务)。
#2
0
If you want something quick and dirty, still using WebForms while getting all the advantages of separating your presentation code from the rest of your application, I've used the following technique which works fine.
如果你想要快速和肮脏的东西,仍然使用WebForms同时获得将表示代码与应用程序的其余部分分开的所有优点,我使用了以下技术,它可以正常工作。
http://www.duncangunn.me.uk/dasblog/2008/03/02/WebFormsMVCOnTheCheap.aspx
This allows me to 'drive' my app using unit tests. It's anything but perfect, but I've used it in a couple of apps now and has been a success.
这允许我使用单元测试来“驱动”我的应用程序。它不是完美的,但我现在已经在几个应用程序中使用它并取得了成功。
#3
0
I use the new Asp.net MVC framework more and more, I really don't like the HTML and viewstate soup Webforms tend to create...
我越来越多地使用新的Asp.net MVC框架,我真的不喜欢HTML和viewstate汤Webforms倾向于创建...
#4
0
asp.net model view presenter (supervising controller) method has worked for me. also looking at asp.net mvc too
asp.net模型视图演示者(监督控制器)方法对我有用。也在看asp.net mvc
#5
0
I've used the FrontContoller pattern on a number of projects, which works well, and is pretty testable too.
我在许多项目中都使用了FrontContoller模式,这种模式效果很好,而且非常可测试。