-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tests.cs
527 lines (459 loc) · 23.6 KB
/
Tests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
using SocketIOClient;
using System.Text.Json;
using TapperSharp.Services;
namespace TapperTests
{
[TestClass]
public class Tests
{
private static TapperClient? _tapperClient;
[ClassInitialize]
public static async Task ClassInitialize(TestContext context)
{
SocketIOOptions socketIOOptions = new SocketIOOptions()
{
ReconnectionAttempts = 3,
Reconnection = true,
ReconnectionDelay = 500,
ReconnectionDelayMax = 500,
RandomizationFactor = 0
};
_tapperClient = new TapperClient("https://tap.trac.network", socketIOOptions);
await _tapperClient.ConnectAsync();
}
[ClassCleanup]
public static async Task ClassCleanup()
{
await _tapperClient!.DisconnectAsync();
}
[TestMethod]
public async Task GetDeployment()
{
var result = await _tapperClient!.GetDeploymentAsync("tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsNotNull(result!.Result);
}
[TestMethod]
public async Task GetDeploymentsLength()
{
var result = await _tapperClient!.GetDeploymentsLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual(0, result!.Result);
}
[TestMethod]
public async Task GetDeployments()
{
var result = await _tapperClient!.GetDeploymentsAsync(0, 5);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreEqual(5, result!.Result!.Count);
}
[TestMethod]
public async Task GetMintTokensLeft()
{
var result = await _tapperClient!.GetMintTokensLeftAsync("tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreEqual("0", result!.Result!);
}
[TestMethod]
public async Task GetHoldersLength()
{
var result = await _tapperClient!.GetHoldersLengthAsync("tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual(0, result!.Result!);
}
[TestMethod]
public async Task GetHolders()
{
var result = await _tapperClient!.GetHoldersAsync("tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual(0, result!.Result!.Count);
}
[TestMethod]
public async Task GetAccountTokensLength()
{
var result = await _tapperClient!.GetAccountTokensLengthAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual(0, result!.Result!);
}
[TestMethod]
public async Task GetBalance()
{
var result = await _tapperClient!.GetBalanceAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0", "tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual("0", result!.Result!);
}
[TestMethod]
public async Task GetTransferable()
{
var result = await _tapperClient!.GetTransferableAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0", "tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result is null || result.Result is string);
}
[TestMethod]
public async Task GetAccountTokens()
{
var result = await _tapperClient!.GetAccountTokensAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.AreNotEqual(0, result!.Result!.Count);
}
[TestMethod]
public async Task GetAccountMintListLength()
{
var result = await _tapperClient!.GetAccountMintListLengthAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0", "tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAccountMintList()
{
var result = await _tapperClient!.GetAccountMintListAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0", "tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerMintListLength()
{
var result = await _tapperClient!.GetTickerMintListLengthAsync("tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetTickerMintList()
{
var result = await _tapperClient!.GetTickerMintListAsync("tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetMintListLength()
{
var result = await _tapperClient!.GetMintListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetMintList()
{
var result = await _tapperClient!.GetMintListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTransferList()
{
var result = await _tapperClient!.GetTransferListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerTransferList()
{
var result = await _tapperClient!.GetTickerTransferListAsync("-tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerTransferListLength()
{
var result = await _tapperClient!.GetTickerTransferListLengthAsync("-tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccountTransferList()
{
var result = await _tapperClient!.GetAccountTransferListAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountTransferListLength()
{
var result = await _tapperClient!.GetAccountTransferListLengthAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetTransferListLength()
{
var result = await _tapperClient!.GetTransferListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccountSentListLength()
{
var result = await _tapperClient!.GetAccountSentListLengthAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccountSentList()
{
var result = await _tapperClient!.GetAccountSentListAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerSentListLength()
{
var result = await _tapperClient!.GetTickerSentListLengthAsync("-tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetTickerSentList()
{
var result = await _tapperClient!.GetTickerSentListAsync("-tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetSentListLength()
{
var result = await _tapperClient!.GetSentListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetSentList()
{
var result = await _tapperClient!.GetSentListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountReceiveListLength()
{
var result = await _tapperClient!.GetAccountReceiveListLengthAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccountReceiveList()
{
var result = await _tapperClient!.GetAccountReceiveListAsync("bc1pdqgwqyc2n04a4ttd5kutzcmpjlqgvpdw2x225d7xewrypqa03nus6mddlq", "-tap", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccumulatorList()
{
var result = await _tapperClient!.GetAccumulatorListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccumulator()
{
var result = await _tapperClient!.GetAccumulatorAsync("1d132688e099f69e81dd67c6f85558ce5fbbf99c82ec16548beb994d76435a15i0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! != null);
result = await _tapperClient!.GetAccumulatorAsync("040b39c793028677de567eeecfd181fef82eef7313b1764cf2090a283653d06ai0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! == null);
}
[TestMethod]
public async Task GetAccountAccumulatorListLength()
{
var result = await _tapperClient!.GetAccountAccumulatorListLengthAsync("bc1paq960e3drpdwddfxh5kcgq48qa5yxeqsty9zez6w2c6mxr5fecrqp0syg0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccumulatorListLength()
{
var result = await _tapperClient!.GetAccumulatorListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result is null || result is not null);
}
[TestMethod]
public async Task GetAccountAccumulatorList()
{
var result = await _tapperClient!.GetAccountAccumulatorListAsync("bc1pnedcv68w8468w5fnju2u2kvsdennmudaje7kt94lhjx5cq33ts3sqhmwmu", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count >= 0);
}
[TestMethod]
public async Task GetTradesListLength()
{
var result = await _tapperClient!.GetTradesListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetTradesList()
{
var result = await _tapperClient!.GetTradesListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerTradesListLength()
{
var result = await _tapperClient!.GetTickerTradesListLengthAsync("BTC");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetTickerTradesList()
{
var result = await _tapperClient!.GetTickerTradesListAsync("BTC", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountTradesListLength()
{
var result = await _tapperClient!.GetAccountTradesListLengthAsync("bc1pfaztje6lw8dk7ngg9netgvesnpa8z8dntd39dqtselw5t2uzl9cq9pvdxm", "BTC");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
}
[TestMethod]
public async Task GetAccountTradesList()
{
var result = await _tapperClient!.GetAccountTradesListAsync("bc1pfaztje6lw8dk7ngg9netgvesnpa8z8dntd39dqtselw5t2uzl9cq9pvdxm", "BTC", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTrade()
{
var result = await _tapperClient!.GetTradeAsync("eb903de9b959c59baaaa5c5d847016bb86ceacca4c4f2659750aa8a6513e9064i0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! != null);
}
[TestMethod]
public async Task GetTradesFilledListLength()
{
var result = await _tapperClient!.GetTradesFilledListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetTradesFilledList()
{
var result = await _tapperClient!.GetTradesFilledListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetTickerTradesFilledListLength()
{
var result = await _tapperClient!.GetTickerTradesFilledListLengthAsync("ordfi");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! > 0);
result = await _tapperClient!.GetTickerTradesFilledListLengthAsync("xxx123123xxx1");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result! == 0);
}
[TestMethod]
public async Task GetTickerTradesFilledList()
{
var result = await _tapperClient!.GetTickerTradesFilledListAsync("buidl", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count >= 0);
}
[TestMethod]
public async Task GetAccountTradesFilledListLength()
{
var result = await _tapperClient!.GetAccountTradesFilledListLengthAsync("bc1pepk5alax8jte67z4dgwywyzhyzuuqcdejcnnuswvxj6hapzu9fcs2f5lr3", "shiba");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAccountTradesFilledList()
{
var result = await _tapperClient!.GetAccountTradesFilledListAsync("bc1pepk5alax8jte67z4dgwywyzhyzuuqcdejcnnuswvxj6hapzu9fcs2f5lr3", "shiba", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountReceiveTradesFilledListLength()
{
var result = await _tapperClient!.GetAccountReceiveTradesFilledListLengthAsync("bc1pepk5alax8jte67z4dgwywyzhyzuuqcdejcnnuswvxj6hapzu9fcs2f5lr3", "taposhi");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAccountReceiveTradesFilledList()
{
var result = await _tapperClient!.GetAccountReceiveTradesFilledListAsync("bc1pepk5alax8jte67z4dgwywyzhyzuuqcdejcnnuswvxj6hapzu9fcs2f5lr3", "taposhi", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAuthListLength()
{
var result = await _tapperClient!.GetAuthListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAuthList()
{
var result = await _tapperClient!.GetAuthListAsync(0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountAuthListLength()
{
var result = await _tapperClient!.GetAccountAuthListLengthAsync("bc1pccu8444ay68zltcdjzrdelpnf26us7ywg9pvwl7nkrjgrkz8rlvqe6f880");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAccountAuthList()
{
var result = await _tapperClient!.GetAccountAuthListAsync("bc1pccu8444ay68zltcdjzrdelpnf26us7ywg9pvwl7nkrjgrkz8rlvqe6f880", 0 , 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAuthCancelled()
{
var result = await _tapperClient!.GetAuthCancelledAsync("fd3664a56cf6d14b21504e5d83a3d4867ee256f06cbe3bddf2787d6a80a86078i0");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result == false);
}
[TestMethod]
public async Task GetAuthHashExists()
{
var result = await _tapperClient!.GetAuthHashExistsAsync("0f30c22be2f46e819538ca1281aadb82d3928cae5a699cade80013c5b14871e4");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result == true);
result = await _tapperClient!.GetAuthHashExistsAsync("thisReturnsFalse69420Blazeit");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result == false);
}
[TestMethod]
public async Task GetRedeemListLength()
{
var result = await _tapperClient!.GetRedeemListLengthAsync();
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetRedeemList()
{
var result = await _tapperClient!.GetRedeemListAsync(0,10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
[TestMethod]
public async Task GetAccountRedeemListLength()
{
var result = await _tapperClient!.GetAccountRedeemListLengthAsync("bc1pccu8444ay68zltcdjzrdelpnf26us7ywg9pvwl7nkrjgrkz8rlvqe6f880");
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result > 0);
}
[TestMethod]
public async Task GetAccountRedeemList()
{
var result = await _tapperClient!.GetAccountRedeemListAsync("bc1pccu8444ay68zltcdjzrdelpnf26us7ywg9pvwl7nkrjgrkz8rlvqe6f880", 0, 10);
Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions() { WriteIndented = true }));
Assert.IsTrue(result!.Result!.Count > 0);
}
}
}