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 void WhenAddingTalkLongerThanAvailableDuration_ThrowsException() { var session = new Session("Morning", DateTime.Now.TimeOfDay, new TimeSpan(0, 60, 0)); session.AddTalk(new Talk("Talk Name", 70)); }