コード例 #1
0
        public void TestDeleteCreditCard()
        {
            string date = DateTime.Now.ToString();

            Moip.Models.CustomerRequest customerRequest = Helpers.RequestsCreator.CreateCustomerRequest(date);

            string customerId = controller.CreateCustomer(customerRequest).Id;

            Moip.Models.CustomerCreditCardRequest customerCreditCardRequest = Helpers.RequestsCreator.CreateCustomerCreditCardRequest();

            string customerCreditCardId = controller.CreateCreditCard(customerCreditCardRequest, customerId).CreditCard.Id;

            bool deleteCreditCardResponse = controller.DeleteCreditCard(customerCreditCardId);

            Assert.IsTrue(deleteCreditCardResponse, "Should be true");
        }