예제 #1
0
 public abstract bool IsDiscountApplicable(AbstractItem item);
예제 #2
0
 public override bool IsDiscountApplicable(AbstractItem item)
 {
     return(item.Publisher.Id == PublisherId);
 }
예제 #3
0
 public override bool IsDiscountApplicable(AbstractItem item)
 {
     return(item.ItemGenres.Any(ig => ig.GenreId == GenreId));
 }
 public override bool IsDiscountApplicable(AbstractItem item)
 {
     return(item.PrintDate.CompareTo(PublishedDate) <= 0);
 }