Exemple #1
0
        public InputProcessor(string inputFilePath)
        {
            _inputFilePath = inputFilePath;

            DayFormat trackFormat = new DayFormat();

            trackFormat.Events.Add(new MorningSession(TimeHelper.Parse("09:00 AM"), TimeHelper.Parse("12:00 PM")));
            trackFormat.Events.Add(new Lunch(TimeHelper.Parse("12:00 PM"), TimeHelper.Parse("01:00 PM")));
            trackFormat.Events.Add(_longestEvent = new AfternoonSession(TimeHelper.Parse("01:00 PM"), TimeHelper.Parse("05:00 PM")));

            /*
             *  Not using 4 PM Start Time for Networking Event because in the Sample Output of Thoughtworks Question
             *  it always Starts at 5 PM. See Track 2 Networking Event Time
             *  But from the statement "The networking event can start no earlier than 4:00 and no later than 5:00."
             *  I understand that the Event can start from 4 PM delayed upto 5 PM
             *  But Sample output for the Track 2 shows
             *  "04:00PM Rails for Python Developers lightning
             *   05:00PM Networking Event"
             *  It could have started at 4:05 PM instead of 5 PM
             */
            //trackFormat.Events.Add(new NetworkingEvent(TimeHelper.Parse("04:00 PM"), TimeHelper.Parse("05:00 PM")));
            trackFormat.Events.Add(new NetworkingEvent(TimeHelper.Parse("05:00 PM"), TimeHelper.Parse("05:00 PM")));

            _conference = new Conference(trackFormat);
        }
Exemple #2
0
 public InputProcessor(string inputFilePath, DayFormat trackFormat, Session longestEvent)
 {
     _longestEvent = longestEvent;
     _conference   = new Conference(trackFormat);
 }
Exemple #3
0
 public Conference(DayFormat trackFormat) : this()
 {
     this.DayFormat = trackFormat;
 }