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

Inheritance: PPPDDDChap23.EventSourcing.Application.Infrastructure.EventSourcedAggregate
Afficher le fichier Open project: elbandit/PPPDDD Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddInclusiveMinutesOffer ( PayAsYouGoInclusiveMinutesOffer offer ) : void
offer PayAsYouGoInclusiveMinutesOffer
Résultat void

Apply() public méthode

public Apply ( DomainEvent @event ) : void
@event PPPDDDChap23.EventSourcing.Application.Infrastructure.DomainEvent
Résultat void

GetPayAsYouGoAccountSnapShot() public méthode

public GetPayAsYouGoAccountSnapShot ( ) : PayAsYouGoAccountSnapshot
Résultat PayAsYouGoAccountSnapshot

GetPayAsYouGoAccountSnapshot() public méthode

public GetPayAsYouGoAccountSnapshot ( ) : PayAsYouGoAccountSnapshot
Résultat PayAsYouGoAccountSnapshot

PayAsYouGoAccount() public méthode

public PayAsYouGoAccount ( ) : System
Résultat System

PayAsYouGoAccount() public méthode

public PayAsYouGoAccount ( System.Guid id, Money credit ) : System
id System.Guid
credit Money
Résultat System

PayAsYouGoAccount() public méthode

public PayAsYouGoAccount ( PayAsYouGoAccountSnapshot snapshot ) : System
snapshot PayAsYouGoAccountSnapshot
Résultat System

Record() public méthode

public Record ( PhoneCall phoneCall, PhoneCallCosting phoneCallCosting, IClock clock ) : void
phoneCall PhoneCall
phoneCallCosting PhoneCallCosting
clock IClock
Résultat void

TopUp() public méthode

public TopUp ( Money credit, IClock clock ) : void
credit Money
clock IClock
Résultat void