public UnitTest1() { _masina = new Masina(new PlainText("5"), TipMasina.Berlina, new PlainText("Opel"), new PlainText("Vectra"), new PlainText("2031"), new PlainText("2300"), new PlainText("200k+"), new PlainText("1.9tdi"), new PlainText("1986"), new PlainText("300cp"), new PlainText("rosu"), new PlainText("nu bate nu trocane")); _magistrala = new MagistralaEvenimente(); _magistrala.InregistreazaProcesatoareStandard(); _mockProcesatorAdaugaMasina = new Mock <ProcesatorEveniment>(); _magistrala.InregistreazaProcesator(TipEveniment.AdaugareMasina, _mockProcesatorAdaugaMasina.Object); _magistrala.InregistreazaProcesator(TipEveniment.RezervaMasina, _mockProcesatorAdaugaMasina.Object); // _magistrala.InchideInregistrarea(); }
public Test1() { carte = new Carte() { Id = new Text("238s0r-3d3"), Nr = new ISSN("384-9ff4-5g"), titlu = new Text("Aventurile lui Tom Sawyer"), autor = new Text("Mark Twain"), an = new Text("1876"), gent = Gen_tip.Liric, genc = Gen_continut.Aventură }; magistrala = new MagistralaEvenimente(); magistrala.InregistreazaProcesatoareStandard(); mockProcesatorAdaugare = new Mock <ProcesatorEveniment>(); magistrala.InregistreazaProcesator(TipEveniment.AdaugareCarte, mockProcesatorAdaugare.Object); magistrala.InchideInregistrarea(); }