public void Setup() { _kellner = new TischKellner(13, "TestKellner"); _tisch = new Tisch(TischNr.TestDefault); _artikel = new Artikel { Preis = 33, Plu = 4711 }; _tisch.BestelleArtikel(new BestelleArtikelCommand(TischKellner.Null, 3, _artikel)); _tisch.StornierePlu(new StornierePluCommand(_kellner, 2, 4711)); }
public void Setup() { _artikel = new Artikel { Preis = 33, Plu = 4711 }; _tisch = new Tisch(TischNr.TestDefault); _tisch.BestelleArtikel(new BestelleArtikelCommand(TischKellner.Null, 2, _artikel)); _tisch.BestelleArtikel(new BestelleArtikelCommand(TischKellner.Null, 2, _artikel)); _tisch.BestelleArtikel(new BestelleArtikelCommand(TischKellner.Null, 2, _artikel)); _tisch.StornierePlu(new StornierePluCommand(TischKellner.Null, 5, _artikel.Plu)); }
public void Setup() { _tisch = new Tisch(TischNr.TestDefault); try { _tisch.StornierePlu(new StornierePluCommand(TischKellner.Null, 2, 4711)); } catch (Exception ex) { _exception = ex; } }