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