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

Inheritance: PPPDDDChap23.EventSourcing.Application.Infrastructure.EventSourcedAggregate
Show file Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method Description
AddInclusiveMinutesOffer ( PayAsYouGoInclusiveMinutesOffer offer ) : void
Apply ( DomainEvent @event ) : void
GetPayAsYouGoAccountSnapShot ( ) : PayAsYouGoAccountSnapshot
GetPayAsYouGoAccountSnapshot ( ) : PayAsYouGoAccountSnapshot
PayAsYouGoAccount ( ) : System
PayAsYouGoAccount ( System.Guid id, Money credit ) : System
PayAsYouGoAccount ( PayAsYouGoAccountSnapshot snapshot ) : System
Record ( PhoneCall phoneCall, PhoneCallCosting phoneCallCosting, IClock clock ) : void
TopUp ( Money credit, IClock clock ) : void

Private Methods

Method Description
Causes ( DomainEvent @event ) : void
When ( AccountCreated accountCreated ) : void
When ( CreditAdded creditAdded ) : void
When ( CreditSatisfiesFreeCallAllowanceOffer creditSatisfiesFreeCallAllowanceOffer ) : void
When ( PhoneCallCharged phoneCallCharged ) : void

Method Details

AddInclusiveMinutesOffer() public method

public AddInclusiveMinutesOffer ( PayAsYouGoInclusiveMinutesOffer offer ) : void
offer PayAsYouGoInclusiveMinutesOffer
return void

Apply() public method

public Apply ( DomainEvent @event ) : void
@event PPPDDDChap23.EventSourcing.Application.Infrastructure.DomainEvent
return void

GetPayAsYouGoAccountSnapShot() public method

public GetPayAsYouGoAccountSnapShot ( ) : PayAsYouGoAccountSnapshot
return PayAsYouGoAccountSnapshot

GetPayAsYouGoAccountSnapshot() public method

public GetPayAsYouGoAccountSnapshot ( ) : PayAsYouGoAccountSnapshot
return PayAsYouGoAccountSnapshot

PayAsYouGoAccount() public method

public PayAsYouGoAccount ( ) : System
return System

PayAsYouGoAccount() public method

public PayAsYouGoAccount ( System.Guid id, Money credit ) : System
id System.Guid
credit Money
return System

PayAsYouGoAccount() public method

public PayAsYouGoAccount ( PayAsYouGoAccountSnapshot snapshot ) : System
snapshot PayAsYouGoAccountSnapshot
return System

Record() public method

public Record ( PhoneCall phoneCall, PhoneCallCosting phoneCallCosting, IClock clock ) : void
phoneCall PhoneCall
phoneCallCosting PhoneCallCosting
clock IClock
return void

TopUp() public method

public TopUp ( Money credit, IClock clock ) : void
credit Money
clock IClock
return void