Esempio n. 1
0
        public async Task enable_data_stream_should_return_deposit_id()
        {
            var depositId = TestItem.KeccakA;
            var client    = "client";
            var args      = new[] { "test" };

            _consumerService.EnableDataStreamAsync(depositId, client, args).Returns(depositId);
            var result = await _rpc.ndm_enableDataStream(depositId, client, args);

            await _consumerService.Received().EnableDataStreamAsync(depositId, client, args);

            result.Data.Should().Be(depositId);
        }