public void Talk_Title_Should_Not_Contain_Numbers()
        {
            var talk             = new Talk("Test Talk Title 5", 10);
            var validationResult = talkValidator.ValidateTalk(talk);

            Assert.False(validationResult.IsValid);
        }
        public List <Talk> GenerateTalksFromInput(string[] fileContents)
        {
            List <Talk> talkList = new List <Talk>();

            foreach (var fileContent in fileContents)
            {
                if (string.IsNullOrEmpty(fileContent))
                {
                    continue;
                }
                var titleAndTalkDurationTuple = talkInfoExtractor.ExtractTalkTitleAndDuration(fileContent);
                if (string.IsNullOrEmpty(titleAndTalkDurationTuple.Item1))
                {
                    continue;
                }
                var talk             = new Talk(titleAndTalkDurationTuple.Item1, titleAndTalkDurationTuple.Item2);
                var validationResult = talkValidator.ValidateTalk(talk);

                if (validationResult.IsValid)
                {
                    talkList.Add(talk);
                }
            }
            return(talkList.OrderBy(x => x.Duration).ToList());
        }