private void SendData() { BookingSingleton singleton = BookingSingleton.Instance; LoggedInSingleton singletonLoggedIn = LoggedInSingleton.Instance; DateTimePeriod date = singleton.SelectedDate; int starttimeH = singleton.StartTimeHour; int starttimeM = singleton.StartTimeMinute; date = DateTimePeriodConverter.AppendToDate(date, starttimeH, starttimeM); string mydate = DateTimePeriodConverter.ToString(date); Room room = singleton.SelectedRoom; int length = singleton.Length; int loggedstudentID = singletonLoggedIn.LoggedStudentID; Persistance.AddNewBooking(loggedstudentID, mydate, length, room.RommID, MeetingName, MeetingDescription); }
public void TestMethod1() { DateTimePeriod date = DateTimePeriodConverter.ToDate("1/9/2012"); Assert.AreEqual("1/9/2012 0:0", DateTimePeriodConverter.ToString(date)); }