public void ErrorWhenAuthorizationIdNotFound()
        {
            //Arrange
            _mockRepo.Setup(m => m.TryGetAuthorization(It.IsAny <string>(), out _authorizationEntity)).Returns(false);
            var authorizationId = "12345678";

            //Act
            var response = _voidService.VoidTransaction(authorizationId);

            //Assert
            Assert.IsTrue(response.Message.Contains("Invalid authorization Id"));
            Assert.IsTrue(response.IsError);
        }
Beispiel #2
0
        public VoidResponse Void(string authorizationId)
        {
            var response = _voidService.VoidTransaction(authorizationId);

            return(response);
        }