public async Task CanCreateTransactionAsync()
        {
            CreateTransactionOrderCommand command = new CreateTransactionOrderCommand
            {
                Value     = 3000,
                Timestamp = 1605037286186,
                WalletId  = "1735613419",
            };

            Assert.NotNull((await walletController.CreateTransaction(command)).Value);
        }
Beispiel #2
0
        public void CreateTransactionReturnsCreatedTransaction()
        {
            // Arrange
            var json = JObject.Parse("{\"amount\":50}");

            // Act
            var createdResult = _controller.CreateTransaction(json) as CreatedResult;

            // Assert
            Assert.NotNull(createdResult);
            Assert.IsType <CreatedResult>(createdResult);
            Assert.IsType <CreatedPaymentTransactionDto>(createdResult.Value);
        }