public void Create_PaymentIsNull_ReturnsNull()
        {
            Mock<IPaymentManager> paymentManagerMock = new Mock<IPaymentManager>();
            Mock<IParameterReader> parameterReaderMock = new Mock<IParameterReader>();
            Mock<ICartActions> cartActionsMock = new Mock<ICartActions>();
            Mock<IVerificationManager> verificationManagerMock  = new Mock<IVerificationManager>();
            Mock<IOrderNumberGenerator> orderNumberGeneratorMock = new Mock<IOrderNumberGenerator>();
            Mock<IAdditionalValuesFormatter> additionalValuesFormatterMock = new Mock<IAdditionalValuesFormatter>();
            Mock<IPaymentActions> paymentActionsMock = new Mock<IPaymentActions>();

            PaymentMethodFactory factory = new PaymentMethodFactory(paymentManagerMock.Object, parameterReaderMock.Object, cartActionsMock.Object,
                verificationManagerMock.Object, orderNumberGeneratorMock.Object, additionalValuesFormatterMock.Object, paymentActionsMock.Object);
            PaymentMethod result = factory.Create(null);

            Assert.IsNull(result);
        }
        public void Create_PaymentIsNull_ReturnsNull()
        {
            Mock<IPaymentManager> paymentManagerMock = new Mock<IPaymentManager>();
            Mock<IParameterReader> parameterReaderMock = new Mock<IParameterReader>();
            Mock<ICartActions> cartActionsMock = new Mock<ICartActions>();
            Mock<IVerificationManager> verificationManagerMock  = new Mock<IVerificationManager>();
            Mock<IOrderNumberGenerator> orderNumberGeneratorMock = new Mock<IOrderNumberGenerator>();
            Mock<IAdditionalValuesFormatter> additionalValuesFormatterMock = new Mock<IAdditionalValuesFormatter>();
            Mock<IPaymentActions> paymentActionsMock = new Mock<IPaymentActions>();
            Mock<IFinancialInvoicingOrderLineFormatter> financialInvoicingOrderLineFormatter = new Mock<IFinancialInvoicingOrderLineFormatter>();
            Mock<IUpdateAddressHandler> updateAddressHandler = new Mock<IUpdateAddressHandler>();
            Mock<IMasterPassShoppingCartFormatter> masterPassShoppingCartXmlFormatter = new Mock<IMasterPassShoppingCartFormatter>();

            PaymentMethodFactory factory = new PaymentMethodFactory(paymentManagerMock.Object,
                parameterReaderMock.Object, cartActionsMock.Object,
                verificationManagerMock.Object, orderNumberGeneratorMock.Object, additionalValuesFormatterMock.Object,
                paymentActionsMock.Object, financialInvoicingOrderLineFormatter.Object, updateAddressHandler.Object,
                masterPassShoppingCartXmlFormatter.Object);
            PaymentMethod result = factory.Create(null);

            Assert.IsNull(result);
        }