private void When(SubscriptionRenewedDomainEvent @event) { this.Id = @event.SubscriptionId; _subscriptionPeriod = SubscriptionPeriod.Of(@event.SubscriptionPeriodCode); _status = SubscriptionStatus.Of(@event.Status); _expirationDate = @event.ExpirationDate; }
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; }
private void When(SubscriptionExpiredDomainEvent @event) { _status = SubscriptionStatus.Of(@event.Status); }