Created
February 29, 2012 13:38
-
-
Save bentayloruk/1940907 to your computer and use it in GitHub Desktop.
Enticify OrderForm.GetAllPromoEvents Extension Method Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orderForm = // OrderForm you get by running pipeline containing Enticify.Promotions | |
// Get all of the Enticify Promotion Events | |
var promoEvents = orderForm.GetAllPromoEvents(); | |
// Filter for those that partially qualified | |
var partiallyQualified = promoEvents.OfType<PromoPartiallyQualified>(); | |
// Loop through the events looking at quantity and money distances? Or whatever! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment