Last active
January 15, 2020 16:30
-
-
Save IntegerMan/bf1be2aabb9c5817ce90fd5734022873 to your computer and use it in GitHub Desktop.
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
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;} | |
} |
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
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