protected async override void When()
        {
            unitOfWork.Setup(x => x.CardRepository.GetCardIncludesAsync(It.IsAny <int>())).ReturnsAsync((Card)null);
            userManager.Setup(x => x.GetUserAsync(It.IsAny <ClaimsPrincipal>())).ReturnsAsync((User)null);

            ITransactionsService service = new TransactionsService(unitOfWork.Object, userManager.Object, inputLogger.Object);

            try
            {
                await service.ServicePayment(inputTransaction, inputUser);
            }
            catch (Exception e)
            {
                result = e;
            }
        }