Beispiel #1
0
        public void CopyAmountFromConfirmation_WhenConfirmationHasIncorrectFormat_ThenThrowsApplicationException()
        {
            var euroPolicy      = new EuroPolicy();
            var rewriterService = new RewriterService(StubConfirmation.IncorrectFormat());

            Assert.Throws <ApplicationException>(() => rewriterService.CopyAmountFromConfirmation(euroPolicy));
        }
Beispiel #2
0
        public void CopyPassengersFromConfirmation_WhenConfirmationHasIncorrectFormat_ThenThrowsApplicationException()
        {
            var rewriterService = new RewriterService(StubConfirmation.IncorrectFormat());

            Assert.Throws <ApplicationException>(() => rewriterService.CopyPassengersFromConfirmation());
        }
Beispiel #3
0
        public void IsTemplateCorrect_WhenTemplateInEuroVersionIsIncorrect_ThenReturnsFalse()
        {
            var specyficationEuro = new ConfirmationTemplateSpecyfication(new EuroPolicy());

            Assert.False(specyficationEuro.IsTemplateCorrect(StubConfirmation.IncorrectFormat()));
        }