在用BDD准备测试用例时,我有点困惑。
这是我想用Gherkin语法表达的要求。
Given A user is subscribed to the system
When A user try to subscribe again
Then System should send him a notification "Subscription unsuccessful"
and Admin Portal User should view related KYC Fields as blank
如何将内部系统交互反映在BDD中?
例如:
( a)在每个步骤之后,MongoDB
我们目前正在就如何构建业务逻辑类进行内部辩论。目前,我们的商业类结构如下:
public class OrderBL
{
public void CreateOrder(OrderDTO order)
{
//save order
//send email
}
public void CancelOrder(OrderDTO order)
{
//save order
//send email
}
public void MarkOrderAsDispatched(Ord