Let's expect two messages, to create a sub and activate fib100 product
send::
msg account.create (name="Jane"
, address ="12 Greenbriar, Aurora"
...)
expect:: subDb.create (name, address)
expect:: (subId ~= "sub[0-9]*"
)
expect:: billing.notifyNewAccount (name, address)
Now a separate message adds the product
send::
msg fibe100.activate (actId:Number=123
, name="Jane"
, address ="12 Greenbriar, Aurora"
...)
expect:: modem.configure (qos == "100m"
)
expect:: email.create (email == "Jane@rogers.com"
, size == "10m"
)
expect:: billing.notifyAddProduct (actId, rateCode == "fibe100"
)
You need to log in to post a comment!