예제 #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));
        }
예제 #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);
        }