public void SetUp() { repozitorijum = new FakeRepozitorijum(); simulatorServer = new SimulatorServer(repozitorijum); MainWindow.SolarniPaneli = new System.ComponentModel.BindingList <SolarniPanel>(); MainWindow.Baterije = new System.ComponentModel.BindingList <Baterija>(); MainWindow.Potrosaci = new System.ComponentModel.BindingList <Potrosac>(); MainWindow.ElektricniAutomobili = new System.ComponentModel.BindingList <ElektricniAutomobil>(); MainWindow.Punjac = new Punjac(); MainWindow.SnagaSunca = 0; }
private static void Main(string[] args) { var server = new SimulatorServer(80, new SimulatorImpl()); server.Start(); Console.WriteLine("Server started."); Console.ReadKey(true); server.Stop(); Console.WriteLine("Server stopped."); }