public async Task FirstTest() { //Creating a market place user _authToken = await _marketPlaceClient.Users(GetSignInData()).ConfigureAwait(false); _authToken = await _marketPlaceClient.UsersMeActivate().ConfigureAwait(false); //Trusting the KIN asset await _blockChainHandler.TryUntilActivated(_keyPair).ConfigureAwait(false); //Completing the tutorial! await DoFirstOffer().ConfigureAwait(false); //Sending that p2p good stuff await DoP2POffer().ConfigureAwait(false); //External speeeeeend offer" await DoExternalSpendOffer().ConfigureAwait(false); //External earn offerrrr" await DoExternalEarnOffer().ConfigureAwait(false); OrderList orders = await _marketPlaceClient.GetOrderHistory().ConfigureAwait(false); //Console.WriteLine(UserId + "first order:\n" + JsonConvert.SerializeObject(orders.Orders.First(), Formatting.Indented)); await _blockChainHandler.GetKinBalance(_keyPair).ConfigureAwait(false); }
public async Task FirstTest() { //Creating a market place user _authToken = await _marketPlaceClient.Users(GetSignInData()).ConfigureAwait(false); _authToken = await _marketPlaceClient.UsersMeActivate().ConfigureAwait(false); //Trusting the KIN asset await _blockChainHandler.TryUntilActivated(_keyPair).ConfigureAwait(false); //Completing the tutorial! var order = await DoFirstOffer().ConfigureAwait(false); double balance = await _blockChainHandler.GetKinBalance(_keyPair).ConfigureAwait(false); var txResponse = await _blockChainHandler.SendPayment(_keyPair, order.BlockChainData.SenderAddress, balance).ConfigureAwait(false); }