public void WhenAddingTalk_AddedToListOfTalks()
 {
     var session = new Session("Morning", DateTime.Now.TimeOfDay, new TimeSpan(0, 60, 0));
     session.AddTalk(new Talk("Talk Name", 30));
     var talk = session.GetTalks().SingleOrDefault(x => x.Title == "Talk Name");
     Assert.IsNotNull(talk);
 }
 public Track(string name)
 {
     _name = name;
     MorningSession = new Session("Morning Session", new TimeSpan(9, 0, 0), new TimeSpan(3, 0, 0));
     Lunch = new TimeSlot("Lunch", new TimeSpan(12, 0, 0));
     AfternoonSession = new Session("Afternoon Session", new TimeSpan(13, 0, 0), new TimeSpan(4, 0, 0));
     Networking = new TimeSlot("Networking Event", new TimeSpan(17, 0, 0));
 }
 public void WhenAddingTalkLongerThanAvailableDuration_ThrowsException()
 {
     var session = new Session("Morning", DateTime.Now.TimeOfDay, new TimeSpan(0, 60, 0));
     session.AddTalk(new Talk("Talk Name", 70));
 }