示例#1
0
        public void TransactionOKTest()
        {
            BvgConnectorMock connector = GetConnector(TransactionDataProvider.GetTransactionOkResponse());

            TransactionBVG response = connector.Transaction(TransactionDataProvider.GetTransaction());

            Assert.AreNotEqual(null, response);

            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetPublicRequestKey()));
            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetMerchantID()));
            Assert.AreEqual(false, String.IsNullOrEmpty(response.GetChannel()));
        }
示例#2
0
        public void TransactionFailValidationTest()
        {
            BvgConnectorMock connector = GetConnector(TransactionDataProvider.GetTransactionOkResponse());

            TransactionBVG response = connector.Transaction(TransactionDataProvider.GetTransactionWrongField());
        }
示例#3
0
        public void TransactionFailValidationRequiredTest()
        {
            BvgConnectorMock connector = GetConnector(TransactionDataProvider.GetTransactionFailVendedorResponse());

            TransactionBVG response = connector.Transaction(TransactionDataProvider.GetTransactionWithoutField());
        }
示例#4
0
        public void TransactionFailVendedorTest()
        {
            BvgConnectorMock connector = GetConnector(TransactionDataProvider.GetTransactionFailVendedorResponse());

            TransactionBVG response = connector.Transaction(TransactionDataProvider.GetTransaction());
        }
示例#5
0
        public void TransactionWithoutFieldTest()
        {
            BvgConnectorMock connector = GetConnector(TransactionDataProvider.GetTransactionFailResponse());

            TransactionBVG response = connector.Transaction(TransactionDataProvider.GetTransaction());
        }