Beispiel #1
0
        public void TransactionState_TestSpecificCases(TransactionState transactionState, string rawResponse)
        {
            //Arrange
            var result = new CheckTransactionResult(new HttpRequestResult()
            {
                RawResponse = rawResponse
            });

            //Assert
            Assert.Equal(result.State, transactionState);
        }
Beispiel #2
0
        public void IsError_TestSpecificCases(bool isError, string rawResponse)
        {
            //Arrange
            var result = new CheckTransactionResult(new HttpRequestResult()
            {
                RawResponse = rawResponse
            });

            //Assert
            Assert.Equal(result.IsError, isError);
        }