コード例 #1
0
        public void CopyPassengersFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue()
        {
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualPassengers = rewriterService.CopyPassengersFromConfirmation();

            Assert.AreEqual(expectedPassengers, actualPassengers);
        }
コード例 #2
0
        public void CopyPassengersFromConfirmation_WhenConfirmationHasIncorrectFormat_ThenThrowsApplicationException()
        {
            var rewriterService = new RewriterService(StubConfirmation.IncorrectFormat());

            Assert.Throws <ApplicationException>(() => rewriterService.CopyPassengersFromConfirmation());
        }