Ejemplo n.º 1
0
        public void CopyAmountFromConfirmation_WhenConfirmationContainAmountInEuroFormat_ThenReturnsCorrectValue()
        {
            var euroPolicy      = new EuroPolicy();
            var rewriterService = new RewriterService(StubConfirmation.EURVersion());

            Console.WriteLine(StubConfirmation.EURVersion().Content);

            var actualAmount = rewriterService.CopyAmountFromConfirmation(euroPolicy);

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

            Assert.True(specyficationEuro.IsTemplateCorrect(StubConfirmation.EURVersion()));
        }
        public void IsTemplateCorrect_WhenTemplateInPlnVersionIsInOtherFormat_ThenReturnsFalse()
        {
            var specyficationEuro = new ConfirmationTemplateSpecyfication(new PlnPolicy());

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