Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            beheer = new Beheer();
            database = new DatabaseManager();

            //Comboboxen vullen
            cb_Con_Bedrijf.DataSource = beheer.Bedrijven;
            cb_Con_Bestemming.DataSource = beheer.Bestemmingen;
            cb_Con_Type.DataSource = Enum.GetValues(typeof(ContainerType));
            comboBoxBestemming.DataSource = beheer.Bestemmingen;
            comboBoxSchip.DataSource = beheer.Schepen;
        }
 public void TestDatabaseGetBestemmingen()
 {
     DatabaseManager database = new DatabaseManager();
     Assert.IsNotNull(database.GetBestemmingen().Find(x => x.Naam == "Port of Antwerp").Naam);
 }
 public void TestDatabaseAddContainer()
 {
     DatabaseManager database = new DatabaseManager();
     Assert.IsTrue(database.AddContainer(new Container(0, "ITC", new Bestemming("Toronto", "Canada"), 230054, ContainerType.C, false)));
 }