CustomerContextModule
PackageAcme.Docs
State used to demonstrate an explicit documentation-test scenario.
Summary
| Name | Signature | Synopsis |
|---|
| Operations |
| loadPreferredCustomer | loadPreferredCustomer () | Loads the deterministic preferred-customer fixture. |
| price | price subtotal | Applies the currently loaded customer's discount. |
Operations
kind:member
loadPreferredCustomer ()
MemberLoads the deterministic preferred-customer fixture.
Parameters
| Name | Type | Description |
|---|
| () | unit | |
kind:member
Applies the currently loaded customer's discount.
Parameters
| Name | Type | Description |
|---|
| subtotal | decimal | |
Verification Examples
PreferredCustomerPrice
> Acme.Docs.CustomerContext.price 100M;;
val it: decimal = 90.0M