private static void RunSpecificScenario() { ForrestGumpGenerator fgGenerator = new ForrestGumpGenerator(); ChocolateBoxGenerator cbGenerator = new ChocolateBoxGenerator(); ForrestGump gump = fgGenerator.GenerateForrestGump(); ChocolateBox box = cbGenerator.GenerateChocolateBox(); gump.SayFavoriteProverb(); while (box.ChocolateLeft) { gump.Eat(box.TakeAChocolate()); } Console.WriteLine(); Console.WriteLine(); }
public IConsumableContainer <IConsumableAdapter <Chocolate> > CreateContainer() { return(new ChocolateBoxAdapter(_chocolateBoxGenerator.GenerateChocolateBox())); }