public void CopyInvocieNumberFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue()
        {
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualTravelNumber = rewriterService.CopyInvocieNumberFromConfirmation();

            Assert.AreEqual("053683790Z", actualTravelNumber);
        }
        public void CopyBookingIdFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue()
        {
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualTravelNumber = rewriterService.CopyBookingIdFromConfirmation();

            Assert.AreEqual("U576YR", actualTravelNumber);
        }
        public void CopyAmountFromConfirmation_WhenConfirmationContainAmountInPlnFormat_ThenReturnsCorrectValue()
        {
            var plnPolicy       = new PlnPolicy();
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualAmount = rewriterService.CopyAmountFromConfirmation(plnPolicy);

            Assert.AreEqual(expected: 161.96m, actualAmount.Value);
        }
Ejemplo n.º 4
0
        public void IsTemplateCorrect_WhenTemplateInEuroVersionIsInOtherFormat_ThenReturnsFalse()
        {
            var specyficationEuro = new ConfirmationTemplateSpecyfication(new EuroPolicy());

            Assert.False(specyficationEuro.IsTemplateCorrect(StubConfirmation.PLNVersion()));
        }
        public void IsTemplateCorrect_WhenTemplateInPlnVersionIsCorrect_ThenReturnsTrue()
        {
            var specyficationEuro = new ConfirmationTemplateSpecyfication(new PlnPolicy());

            Assert.True(specyficationEuro.IsTemplateCorrect(StubConfirmation.PLNVersion()));
        }