CustomerContextModule

PackageAcme.Docs
State used to demonstrate an explicit documentation-test scenario.

Summary

NameSignatureSynopsis
loadPreferredCustomerloadPreferredCustomer ()Loads the deterministic preferred-customer fixture.
priceprice subtotalApplies the currently loaded customer's discount.

loadPreferredCustomer

loadPreferredCustomer ()
Member
Loads the deterministic preferred-customer fixture.

Parameters

NameTypeDescription
()unit

Returns

unit

price

price subtotal
Member
Applies the currently loaded customer's discount.

Parameters

NameTypeDescription
subtotaldecimal

Returns

decimal

Verification Examples

PreferredCustomerPrice

> Acme.Docs.CustomerContext.price 100M;;
val it: decimal = 90.0M