コード例 #1
0
        public static VideoClubMembership Create(int customerId)
        {
            var newMembership = new VideoClubMembership
            {
                Id = customerId
            };

            return(newMembership);
        }
コード例 #2
0
ファイル: VideoClubService.cs プロジェクト: JamesHedges/Katas
 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);
         }
     }
 }
コード例 #3
0
 public void Save(VideoClubMembership entity)
 {
     throw new NotImplementedException();
 }