public static VideoClubMembership Create(int customerId) { var newMembership = new VideoClubMembership { Id = customerId }; return(newMembership); }
public void Handle(AcceptingPurchaseOrderItemLine notification) { if (notification.Item.Type == ItemLineType.Membership && notification.Item.Category == ItemLineCategory.Video) { var membership = _Repository.Get(notification.CustomerId); if (membership == null) { membership = VideoClubMembership.Create(notification.CustomerId); } } }
public void Save(VideoClubMembership entity) { throw new NotImplementedException(); }