public ActionResult Bevestiging(BoekingViewModel bvmreispartners) { BoekingViewModel bvmsession = Session["Boekingviewmodel"] as BoekingViewModel; boekingRepository.Insert(bvmsession.MainCustomer, bvmsession.Travelpartner); Session["Boekingviewmodel"] = bvmsession; ViewBag.StepNavIndex = 4; return(View(bvmsession)); }
public void PlaatsBoeking() { Boeking boeking = new Boeking(99, true, 100M, 2, 2, true, true); MainCustomer mainCustomer = new MainCustomer("testadress", "testresidence", "testtelephonenumber", "testmail", Preamble.dhr, DateTime.Now, "testname", "testname"); List <Travelpartner> travelpartners = new List <Travelpartner>(); Travelpartner travelpartner = new Travelpartner(true, Preamble.dhr, DateTime.Now, "testpartnername", "testpartnerlastname"); travelpartners.Add(travelpartner); mainCustomer.Boeking = boeking; BoekingRepository boekingRepository = new BoekingRepository(BoekingFactory.Get(1)); boekingRepository.Insert(mainCustomer, travelpartners); //assert GetBoeking() in repositoryPattern moet nog geimplementeerd worden. }