public void DeliveryAddress_ValueRetained()
        {
            var ctx = new DomesticPaymentConsentContext(TestDataFactory.CreateMockOpenBankingContext())
            {
                Data = null
            };

            var value = new OBRisk1DeliveryAddress();

            ctx.DeliveryAddress(value);

            ctx.Data.DomesticConsent.Risk.DeliveryAddress.Should().Be(value);
        }
        public void InstructionIdentification_ValueRetained()
        {
            var ctx = new DomesticPaymentConsentContext(TestDataFactory.CreateMockOpenBankingContext())
            {
                Data = null
            };

            var value = "Abc";

            ctx.InstructionIdentification(value);

            ctx.Data.DomesticConsent.Data.Initiation.InstructionIdentification.Should().Be(value);
        }
        public void Amount_ValueRetained()
        {
            var ctx = new DomesticPaymentConsentContext(TestDataFactory.CreateMockOpenBankingContext())
            {
                Data = null
            };


            var currency = "GBP";
            var value    = 1234.00;

            ctx.Amount(currency, value);

            ctx.Data.DomesticConsent.Data.Initiation.InstructedAmount.Currency.Should().Be(currency);
            ctx.Data.DomesticConsent.Data.Initiation.InstructedAmount.Amount.Should().Be(value.ToString());
        }