private void TestMetode() { ClassTrip CT = new ClassTrip(); CT.destination = "London"; selectedTrip = CT; }
public void Test_02_UpdateDataTripTest() { int expected = 1; int actual = 0; TimeSpan test__dept_time = Convert.ToDateTime("11:11:00").TimeOfDay; TimeSpan test_travel_time = Convert.ToDateTime("01:56:00").TimeOfDay; ClassTrip test_class = new ClassTrip(111, "TestCity_Update", test__dept_time, test_travel_time, 72); using (SqlConnection conn = DBUtils.GetDBConnection()) { conn.Open(); actual = DBUtils.UpdateDataTrip(conn, test_class); conn.Close(); } Assert.AreEqual(expected, actual); }
public ClassBIZ() { cityName = ""; selectedTrip = new ClassTrip(); tripList = new List <ClassTrip>(); selectedBooking = new ClassBooking(); bookingList = new List <ClassBooking>(); selectedTransport = new ClassTransport(); transportList = new List <ClassTransport>(); selectedCustomer = new ClassCustomers(); customerList = new List <ClassCustomers>(); selectedParticipant = new ClassParticipant(); participantList = new List <ClassParticipant>(); TestMetode(); }