コード例 #1
0
 private void When(SubscriptionRenewedDomainEvent @event)
 {
     this.Id             = @event.SubscriptionId;
     _subscriptionPeriod = SubscriptionPeriod.Of(@event.SubscriptionPeriodCode);
     _status             = SubscriptionStatus.Of(@event.Status);
     _expirationDate     = @event.ExpirationDate;
 }
コード例 #2
0
 private void When(SubscriptionCreatedDomainEvent @event)
 {
     this.Id             = @event.SubscriptionId;
     _subscriberId       = new SubscriberId(@event.PayerId);
     _subscriptionPeriod = SubscriptionPeriod.Of(@event.SubscriptionPeriodCode);
     _countryCode        = @event.CountryCode;
     _status             = SubscriptionStatus.Of(@event.Status);
     _expirationDate     = @event.ExpirationDate;
 }
コード例 #3
0
 private void When(SubscriptionExpiredDomainEvent @event)
 {
     _status = SubscriptionStatus.Of(@event.Status);
 }