public void ConstructorAndFields()
        {
            PayeeResponse obj = new PayeeResponse();

            Assert.IsNotNull(obj);
            Assert.IsNull(obj.Data);

            obj.Data = new Payee();
            Assert.IsNotNull(obj.Data);
            Assert.IsNotNull(obj.ToJson());
        }
        public void GetPayeeStatus()
        {
            BoletoFacil boletoFacil = GetBoletoFacil();
            Payee       payee       = Payee;

            PayeeResponse response = boletoFacil.GetPayeeStatus(payee);

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Success);
            Assert.IsNotNull(response.Data);
            Assert.IsInstanceOfType(response.Data, typeof(Payee));
            Assert.AreEqual("Aprovado", response.Data.Status);
        }
        public void CreatePayeeMandatoryFields()
        {
            BoletoFacil boletoFacil = GetBoletoFacil();
            Payee       payee       = Payee;

            PayeeResponse response = boletoFacil.CreatePayee(payee);

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Success);
            Assert.IsNotNull(response.Data);
            Assert.IsInstanceOfType(response.Data, typeof(Payee));
            Assert.AreEqual("22FAC22222EE2D22222222ADDDDDBEF38B222222D22D22E2", response.Data.Token);
        }
        public void CreatePayeeAutoApprovedAndEmailOptOut()
        {
            BoletoFacil boletoFacil = GetBoletoFacil();
            Payee       payee       = Payee;

            payee.EmailOptOut = true;
            payee.AutoApprove = true;

            PayeeResponse response = boletoFacil.CreatePayee(payee);

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Success);
            Assert.IsNotNull(response.Data);
            Assert.IsInstanceOfType(response.Data, typeof(Payee));
            Assert.AreEqual("22FAC22222EE2D22222222ADDDDDBEF38B222222D22D22E2", response.Data.Token);
        }