Exemple #1
0
        public void CopyPassengersFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue()
        {
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualPassengers = rewriterService.CopyPassengersFromConfirmation();

            Assert.AreEqual(expectedPassengers, actualPassengers);
        }
        public void CopyTravelNumberFromConfirmation_WhenConfirmationHasCorrectFormat_ThenReturnsCorrectValue()
        {
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualTravelNumber = rewriterService.CopyTravelNumberFromConfirmation();

            Assert.AreEqual("HTG93P", actualTravelNumber);
        }
Exemple #3
0
        public void CopyAmountFromConfirmation_WhenConfirmationContainAmountInPlnFormat_ThenReturnsCorrectValue()
        {
            var plnPolicy       = new PlnPolicy();
            var rewriterService = new RewriterService(StubConfirmation.PLNVersion());

            var actualAmount = rewriterService.CopyAmountFromConfirmation(plnPolicy);

            Assert.AreEqual(expected: 1645.27m, actualAmount.Value);
        }
Exemple #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()));
        }