Esempio n. 1
0
        public static BookClubMembership Create(int customerId)
        {
            var newMembership = new BookClubMembership
            {
                Id = customerId
            };

            return(newMembership);
        }
Esempio n. 2
0
 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();
 }