public abstract bool IsDiscountApplicable(AbstractItem item);
public override bool IsDiscountApplicable(AbstractItem item) { return(item.Publisher.Id == PublisherId); }
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); }