public void CretePizzaViaOnlineCompany() { var alfredo = new AlfreddosPlace(); var luidji = new LuidjiSpagettiPlace(); var onlinePizzaPlace = new OnlineDeliveryCompany(alfredo, luidji); var peperoni = onlinePizzaPlace.MakePeperoni(); var carbonara = onlinePizzaPlace.MakeCarbonara(); Assert.That(peperoni.ToString(), Contains.Substring("Peperoni")); }
public static void Main() { var alfredo = new AlfreddosPlace(); var luidji = new LuidjiSpagettiPlace(); var onlinePizzaPlace = new OnlineDeliveryCompany(alfredo, luidji); var peperoni = onlinePizzaPlace.MakePeperoni(); var carbonara = onlinePizzaPlace.MakeCarbonara(); Console.WriteLine(peperoni); Console.WriteLine(carbonara); }