public void TripDBTest() { TripDB tripDB = new TripDB(); int p = tripDB.getNoOfPayer(); int n = tripDB.getNoOfTrip(); Assert.AreEqual(p, 0); Assert.AreEqual(n, 0); }
public void getNoOfPayerTest() { TripDB tripDB = new TripDB(); int tripID = tripDB.addTrip(3); int payerId1 = tripDB.addPayer(tripID, 0, 1); int payerId2 = tripDB.addPayer(tripID, 1, 1); int payerId3 = tripDB.addPayer(tripID, 2, 1); int p = tripDB.getNoOfPayer(); Assert.AreEqual(p, 3); }