Exemplo n.º 1
0
 /// <summary>
 /// Constuctor for Pizza Store
 /// </summary>
 /// <param name="settings"></param>
 /// <param name="pizzaFactory"></param>
 /// <param name="pizzaTopFactory"></param>
 public PizzzasStore(IPizzaFactorySettings settings, IPizzaFactory pizzaFactory, IPizzaTopFactory pizzaTopFactory)
 {
     _settings        = settings ?? throw new ArgumentException(string.Format($"{nameof(settings)} is null."));
     _pizzaFactory    = pizzaFactory ?? throw new ArgumentException(string.Format($"{nameof(pizzaFactory)} is null."));;
     _pizzaTopFactory = pizzaTopFactory ?? throw new ArgumentException(string.Format($"{nameof(pizzaTopFactory)} is null."));;
 }
Exemplo n.º 2
0
 public void TestInitialize()
 {
     _settings        = TestHelpers.GetPizzaSettings();
     _pizzaFactory    = new PizzaFactory(_settings.GeneralSettings, _settings.PizzaBases);
     _pizzaTopFactory = new PizzaTopFactory(_settings.PizzaTops);
 }