Example #1
0
        public void ScheduleTalks()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.Schedule();
        }
Example #2
0
        public void ScheduleAllTheTalksRegistered()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.Schedule();

            Assert.AreEqual(13, GetScheduledTalks());
        }
Example #3
0
        public void AlsoScheduleTalksWithNetworkingEvent()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListTwo());
            _testConference.RegisterTalks();

            _testConference.Schedule();
        }
Example #4
0
        public void AddTalksIfTheyWereAddedInTwoTurns()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListTwo());
            _testConference.RegisterTalks();

            Assert.AreEqual(19, _testConference.TotalTalks);
        }
Example #5
0
        public void ScheduleIfTalksWereRegisteredInIterations()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListTwo());
            _testConference.RegisterTalks();

            _testConference.Schedule();
            Assert.AreEqual(19, GetScheduledTalks());
        }
Example #6
0
        private void SetDaysSchedule()
        {
            _days = new List <Day>();

            _tracks = new List <Track>();
            for (var i = 0; i < 2; i++)
            {
                _tracks.Add(ConferenceTrackDataSeed.GetNewTrack());
            }

            _days.Add(new Day(_tracks));
        }
Example #7
0
        public void WriteResultToTextFile()
        {
            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();

            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListTwo());
            _testConference.RegisterTalks();

            _testConference.Schedule();

            _testConference.GetSchedule();
        }
Example #8
0
        public void NotRegisterTalksIfItCannotBeScheduled()
        {
            _testConference = new Conference(_scheduler, new List <Day>()
            {
                new Day(new List <Track>()
                {
                    ConferenceTrackDataSeed.GetNewTrack()
                })
            });

            _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
            _testConference.RegisterTalks();
        }
Example #9
0
 public void RegisterLightningTalks()
 {
     _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetLightningTalksList());
     _testConference.RegisterTalks();
 }
Example #10
0
 public void BeAbleToImportTalksList()
 {
     _testConference.TalksLoader = new FileTalksLoader(ConferenceTrackDataSeed.GetTalksListOne());
     _testConference.RegisterTalks();
     Assert.AreEqual(_testConference.TotalTalks, 13);
 }