public void CreateScheduleTest1() { List <ScheduleDetail> schedDetails = new List <ScheduleDetail>(); DateTime timeStart = new DateTime(2018, 8, 2, 7, 0, 0); DateTime timeEnd = new DateTime(2018, 8, 2, 9, 12, 0); schedDetails.Add(new ScheduleDetail(null, null, timeStart, timeEnd, "Room Seat")); schedDetails.Add(new ScheduleDetail(null, null, timeStart, timeEnd, "Room Seat")); Schedule sche = new Schedule(null, 0, null, "07:00, 08:00", 1, 3, schedDetails); Assert.True(scheDAL.CreateSchedule(sche)); }
public bool CreateSchedule(Schedule sche) { return(sdal.CreateSchedule(sche)); }