public void CopyPassengersFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue() { var rewriterService = new RewriterService(StubConfirmation.PLNVersion()); var actualPassengers = rewriterService.CopyPassengersFromConfirmation(); Assert.AreEqual(expectedPassengers, actualPassengers); }
public void CopyPassengersFromConfirmation_WhenConfirmationHasIncorrectFormat_ThenThrowsApplicationException() { var rewriterService = new RewriterService(StubConfirmation.IncorrectFormat()); Assert.Throws <ApplicationException>(() => rewriterService.CopyPassengersFromConfirmation()); }