public void UpgradeMembership()
        {
            var @event = new MembershipLevelUpgradedEvent(Id, DateTime.UtcNow, Version);

            ApplyEvent(@event);
            AppendEvent(@event);
        }
 public void ApplyEvent(MembershipLevelUpgradedEvent simpleEvent)
 {
     Type = (Type == MembershipType.Level1)
        ? MembershipType.Level2
        : (Type == MembershipType.Level2)
            ? MembershipType.Level3
            : Type;
     Version++;
 }