예제 #1
0
        public ClientTest(ITestOutputHelper testOutputHelper)
        {
            _testOutputHelper = testOutputHelper;
            Client            = new AElfClient(BaseUrl);

            // To get address from privateKey.s
            _address = Client.GetAddressFromPrivateKey(PrivateKey);
        }
예제 #2
0
        public async Task GetCurrentRoundInformationAsync_Test()
        {
            var webAppService = new AElfClient(BaseUrl, 60);
            var roundDto      = await webAppService.GetCurrentRoundInformationAsync();

            roundDto.ShouldNotBeNull();

            var currentRoundInformation = JsonConvert.SerializeObject(roundDto);

            _testOutputHelper.WriteLine(currentRoundInformation);
        }