C# Class PPPDDDChap23.EventSourcing.Application.Model.PayAsYouGo.FreeCallAllowance

Datei anzeigen Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method Description
FreeCallAllowance ( Minutes allowance, System.DateTime dateStarted ) : System
MinutesWhichCanCover ( PhoneCall phoneCall, IClock clock ) : Minutes
Subtract ( Minutes minutes ) : void

Private Methods

Method Description
StillValid ( IClock clock ) : bool

Method Details

FreeCallAllowance() public method

public FreeCallAllowance ( Minutes allowance, System.DateTime dateStarted ) : System
allowance Minutes
dateStarted System.DateTime
return System

MinutesWhichCanCover() public method

public MinutesWhichCanCover ( PhoneCall phoneCall, IClock clock ) : Minutes
phoneCall PhoneCall
clock IClock
return Minutes

Subtract() public method

public Subtract ( Minutes minutes ) : void
minutes Minutes
return void