Example #1
0
        private ISummary GetTestFlightSumary()
        {
            var mocValidator = new Moq.Mock <IInputValidator>();

            mocValidator.Setup(val => val.IsValidInput(_inputLines, null)).Returns(true);
            var abnfFileProcess = new AbnfContentProcessor(mocValidator.Object);

            return(abnfFileProcess.Process(_inputLines));
        }
Example #2
0
        public void ReturnsEmptySummaryIfInputIsNullOrEmpty()
        {
            var mocValidator = new Moq.Mock <IInputValidator>();

            mocValidator.Setup(val => val.IsValidInput(new List <string>(), null)).Returns(true);
            var abnfFileProcess = new AbnfContentProcessor(mocValidator.Object);
            var flightSummary   = abnfFileProcess.Process(null);

            Assert.IsNotNull(flightSummary);
        }