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); }
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); }