public void ToXml_CieloBuyPage_GivenACreateTransactionRequest_ShouldGenerateAXmlAsExpected()
        {
            var order = new Order("624726783", 10.00m, new DateTime(2013, 02, 18, 16, 45, 12), "[origem:172.16.34.66]");
            var paymentMethod = new PaymentMethod(CreditCard.Visa, PurchaseType.Credit);
            var createTransactionOptions =
                new CreateTransactionOptions(AuthorizationType.AuthorizeSkippingAuthentication, false);
            var fakeConfiguration = new FakeConfiguration();

            var createTransactionRequest = new CreateTransactionRequest(order, paymentMethod, createTransactionOptions,
                configuration: fakeConfiguration)
            {
                UniqueKey = Guid.Parse("b646a02f-9983-4df8-91b9-75b48345715a")
            };

            createTransactionRequest
                .ToXml(false)
                .RemoveNewLinesAndSpaces()
                .Should()
                .Be(ExpectedXmlCieloBuyPage.RemoveNewLinesAndSpaces());
        }
            ToXmlWithoutSensitiveData_GivenACreateTransactionRequest_ShouldGenerateAXmlWithoutSensitiveDataAkaCreditCardNumberAndDateAndSecurityCode
            ()
        {
            var order = new Order("624726783", 10.00m, new DateTime(2013, 02, 18, 16, 45, 12), "[origem:172.16.34.66]");
            var paymentMethod = new PaymentMethod(CreditCard.Visa, PurchaseType.Credit);
            var createTransactionOptions =
                new CreateTransactionOptions(AuthorizationType.AuthorizeSkippingAuthentication, false);
            var creditCardData = new CreditCardData("4551870000000183", new CreditCardExpiration(2015, 08),
                SecurityCodeIndicator.Sent, "973");
            var fakeConfiguration = new FakeConfiguration();

            var createTransactionRequest = new CreateTransactionRequest(order, paymentMethod, createTransactionOptions,
                creditCardData, fakeConfiguration)
            {
                UniqueKey = Guid.Parse("b646a02f-9983-4df8-91b9-75b48345715a")
            };

            createTransactionRequest
                .ToXmlWithoutSensitiveData(false)
                .RemoveNewLinesAndSpaces()
                .Should()
                .Be(ExpectedXmlLojaBuyPageWithoutSensitiveData.RemoveNewLinesAndSpaces());
        }