Skip to content

Instantly share code, notes, and snippets.

@IntegerMan

IntegerMan/PastaContext.cs

Last active Jan 15, 2020
Embed
What would you like to do?
public class PastaContext
{
// Initialization not included - would happen at the constructor level as a pass through
public KitchenSupplies Supplies {get;}
public DateTime TimeOfDay {get;}
public IngerdientPriceData PricingData {get;}
}
public PastaMeal BuildPastaMeal(IEnumerable<Guest> guests, PastaContext context)
{
var dinner = new PastaMeal();
// Add a quanity of pasta per guest based on time of day and kitchen supply quantities
// This algorithm will try to prefer cheaper types of pasta
return dinner;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.