public void ValidateSubscription()
 {
     Assert.Throws <FormatException>(() => PagarMeProvider.ValidateSubscription(new SubscriptionSetup
     {
         PaymentMethod = PaymentMethod.CreditCard,
         CardHash      = "__hash__",
         Plan          = -1
     }));
 }
        public void ValidateTransaction()
        {
            Assert.Throws <FormatException>(() => PagarMeProvider.ValidateTransaction(new TransactionSetup
            {
                PaymentMethod = PaymentMethod.CreditCard,
                CardHash      = ""
            }));

            Assert.Throws <FormatException>(() => PagarMeProvider.ValidateTransaction(new TransactionSetup
            {
                PaymentMethod = PaymentMethod.Boleto,
                Amount        = -10m
            }));
        }