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

            Assert.Throws <ApplicationException>(() => rewriterService.CopyAmountFromConfirmation(euroPolicy));
        }
        public void CopyInvocieNumberFromConfirmation_WhenConfirmationHasIncorrectFormat_ThenThrowsApplicationException()
        {
            var rewriterService = new RewriterService(StubConfirmation.IncorrectFormat());

            Assert.Throws <ApplicationException>(() => rewriterService.CopyBookingIdFromConfirmation());
        }
コード例 #3
0
        public void IsTemplateCorrect_WhenTemplateInEuroVersionIsIncorrect_ThenReturnsFalse()
        {
            var specyficationEuro = new ConfirmationTemplateSpecyfication(new EuroPolicy());

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