public void setup() { c = new Clientt(); cf = new ClientFactory(); s = new Serverr(cf, null); k = new Konzola1(); }
public void TestSetup() { cf = new ClientFactory(); server = new Serverr(cf, null); konzola = new Konzola(); m = new Metode(server, konzola); mytuplefactory = new MyTupleFactory(); queueFactory = new QueueFactory(); pfs = new Pomocne_funkcijeSubscribe(mytuplefactory, queueFactory); }
public void setup() { mtf = new MyTupleFactory(); qf = new QueueFactory(); pfc = new Pomocne_funkcijeCreate(mtf, qf); pfs = new Pomocne_funkcijeSubscribe(mtf, qf); pfu = new Pomocne_funkcijeUpdate(); meni = new Meni(pfc, pfs, pfu); cf = new ClientFactory(); srv = new Serverr(cf, null); }
public void TearDown() { cf = null; server = null; konzola = null; m = null; mytuplefactory = null; queueFactory = null; pfc = null; client = null; }
public void TestSetup() { cf = new ClientFactory(); server = new Serverr(cf, null); konzola = new Konzola(); m = new Metode(server, konzola); mytuplefactory = new MyTupleFactory(); queueFactory = new QueueFactory(); pfc = new Pomocne_funkcijeCreate(mytuplefactory, queueFactory); client = new Clientt("Klijent"); }
static void Main(string[] args) { Repository repo = new Repository("myConnectionString"); repo.Database.CreateIfNotExists(); ConsoleWrapper cw = new ConsoleWrapper(); QueueFactory qf = new QueueFactory(); MyTupleFactory mtf = new MyTupleFactory(); ClientFactory cf = new ClientFactory(); Pomocne_funkcijeSubscribe pfs = new Pomocne_funkcijeSubscribe(mtf, qf); Pomocne_funkcijeCreate pfc = new Pomocne_funkcijeCreate(mtf, qf); Pomocne_funkcijeUpdate.Pomocne_funkcijeUpdate pfu = new Pomocne_funkcijeUpdate.Pomocne_funkcijeUpdate(); Serverr server = new Serverr(cf, repo); Metode metode = new Metode(server, cw); Meni meni = new Meni(pfc, pfs, pfu); Model m = new Model(); Clientt c = new Clientt(); server.IscitajIzBazeNaPocetku(); meni.Menu(cw, metode); }
public Metode(Serverr server, IConsole console) { this.server = server; this.console = console; }