public void SessionWithWholeDayDurationAndNoEventsReturnsNoTracks()
        {
            _sessionsManager.Stub(p => p.GetAllPossibleSessions()).Return(CreateSessionWithDurationFor8Hours());
            _trackManager = new TrackManager(_sessionsManager);
            var tracks = _trackManager.GetPossibleTracks(_events);

            Assert.IsTrue(tracks.Count == 0);
        }
        public void SessionWithWholeDayDurationAndOneEventWithSameDuration()
        {
            _sessionsManager.Stub(p => p.GetAllPossibleSessions()).Return(CreateSessionWithDurationFor8Hours());
            _trackManager = new TrackManager(_sessionsManager);
            _events.Add(new TalkEvent("test", CreateSessionWithDurationFor8Hours().Sum(p => p.Duration)));
            var tracks = _trackManager.GetPossibleTracks(_events);

            Assert.IsTrue(tracks.Count == 1);
            Assert.IsTrue(tracks.First().Sessions.Any());
            Assert.IsTrue(tracks.First().Sessions.First().Events.Any());
            Assert.IsTrue(tracks.First().Sessions.First().Events.First().IsScheduled);
        }