public void Init() { repo = new SalRepository(); s1 = new Sal("Store Sal", 1, (decimal)50000.00, 1740); s2 = new Sal("Sidescenen", 2, (decimal)37500.00, 600); repo.AddItem(s1); repo.AddItem(s2); }
public void TestVælgSal() { //List<ODEONEvent> events = new List<ODEONEvent>(); //events.Add(new ODEONEvent("Nytårsfest", 1)); //List<Sal> sale = new List<Sal>(); //sale.Add(new Sal("Store Sal", 1, (decimal)50000.00, 1740)); int IDEvent = control.IndskrivNavnOgDato(name, dates); Salrepo.AddItem(new Sal("Store Sal", 1, (decimal)50000.00, 1740)); string SalNavn = Salrepo.GetItem("Store Sal").ToString(); control.VælgSal(IDEvent, SalNavn); for (int i = 0; i < dates.Count; i++) { Assert.AreEqual("Store Sal", OErepo.GetItem(IDEvent).Afviklinger[i].Sal.ToString()); } }