上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 首先,按我自己的理解,简单说一下TDD 和 BDD 有何区别?首先是思路上的区别, 传统的 TDD 关注的是接口是否被正确地实现了, 所以通常每个接口有一个对应的单元测试类。而BDD是通过故事模板和场景,描述产品在用户操作时的具体功能表现,有点类似传统的Use Case。写BDD的测试时更像测试人员平常写的测试用例。由于BDD一般是使用自然语言来表达,所以就算不是开发人员也看得懂。以下就是一个BDD的例子:Behat是PHP下的一个BDD框架,可以配合PHPUnit来使用。更详细的介绍可以去behat的官方网站查看,http://behat.org/在对Web应用做自动化测试时,碰到界面测试时 阅读全文
posted @ 2012-04-08 00:48 四眼蒙面侠 阅读(2385) 评论(0) 推荐(1)
摘要: 首先简单介绍以下PC遥控器是个神马东西。你只需在被控电脑端安装上PC遥控器,设置好微博登录账号(最新版同时支持新浪和腾讯微博)。这样无论你在何处何地,只要发个微博,就可以对你的电脑进行关机、重启、关闭显示器、查看屏幕截图等操作!简单方便!非常实用!PC遥控器目前是靠我业余时间往里面添砖加瓦,但是一个人的力量和精力是有限的,为了让这款微博小应用的功能更加丰富和实用,我决定把PC遥控器开源,希望园里面... 阅读全文
posted @ 2011-07-08 02:02 四眼蒙面侠 阅读(3563) 评论(36) 推荐(13)
摘要: PC遥控器是一款新浪微博的PC端小工具,有了这个小工具,你就可以随时随地通过发微博来控制你家里的电脑。 使用场景: 有时你要急着出门,但是你想下载的电影还没下载完成,你希望回来的时候可以马上观看。这时PC遥控器就发挥作用了,你出门前只需打开PC遥控器,设置好微博账号后就可以了。两个小时后,你只需发一条微博:屏幕截图$$看看我的电脑在干什么。一分钟后,PC遥控器就会把你家里电脑当前的屏幕截图发到你的微博上。这时,你看到电影已经下载完成,马上发一条微博:关机$$省电,这时PC遥控就会帮你关闭你的电脑了,既省电又环保。 阅读全文
posted @ 2011-03-21 11:18 四眼蒙面侠 阅读(804) 评论(2) 推荐(1)
摘要: Inmy first post, I explained a little bit about how sagas can be leveraged to deal with the problem of nested transactions—”transactions” that span more than a single message. There were a few community questions related to me redefining the concept of a saga. That’s definitely not what I’m trying t 阅读全文
posted @ 2011-01-27 00:07 四眼蒙面侠 阅读(712) 评论(0) 推荐(0)
摘要: For starters, what is a saga? A saga is a “long-lived business transaction or process”. Okay, so what does that mean? Well, first of all, the “long-lived” part doesn’t have to mean hours, days, or even weeks—it could literally mean something as short as a few seconds. The amount of time is not the i 阅读全文
posted @ 2011-01-27 00:05 四眼蒙面侠 阅读(415) 评论(0) 推荐(0)
摘要: Brad Wilson在他自己的博客写了有关ASP.NET MVC3依赖注入支持的一系列文章,但由于某些原因(你懂的),需要FQ才能阅读。为了方便自己也方便喜欢的同学,特意FQ再拷贝回来发布,以下是这一系列文章的索引:Part 1: IntroductionPart 2: ControllersPart 3: View Engines/View PagesPart 4: FiltersPart 5: IDependencyResolverPart 6: Model ValidationPart 7: Model MetadataPart 8: Value ProvidersPart 9: Mo 阅读全文
posted @ 2011-01-25 18:22 四眼蒙面侠 阅读(480) 评论(3) 推荐(0)
摘要: View Page ActivatorIn ASP.NET MVC, it’s common for views to be compiled into classes. In MVC 1.0, we shipped theWebFormViewEngineas the default view engine, which allowed the user to write views using the familiar % % syntax from ASP.NET WebForms. The first time the view is rendered, the view file 阅读全文
posted @ 2011-01-25 17:59 四眼蒙面侠 阅读(534) 评论(0) 推荐(0)
摘要: Controller ActivatorIn MVC 1.0, we introducedIControllerFactoryto allow better dependency injection of controller instances. We also provided theDefaultControllerFactory, which created controller instances with Activator.CreateInstance. Some of this is discussed inPart 2of this series.We realized th 阅读全文
posted @ 2011-01-25 17:58 四眼蒙面侠 阅读(534) 评论(0) 推荐(0)
摘要: Value ProvidersASP.NET MVC 2 introduced a new method to find value providers: theValueProviderFactoryclass. Value providers are used by the model binding system in MVC to populate the values of model objects. MVC includes value providers for several common value sources (including query string, form 阅读全文
posted @ 2011-01-25 17:57 四眼蒙面侠 阅读(451) 评论(0) 推荐(0)
摘要: Model BindersASP.NET MVC 1.0 introduced theIModelBinderinterface. Developers who implement this interface are responsible for creating models from values obtained from value providers. In ASP.NET MVC 3, we introduced a new interface (IModelBinderProvider) which allows developers to dynamically provi 阅读全文
posted @ 2011-01-25 17:57 四眼蒙面侠 阅读(494) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页