-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate unit tests to use https://github.com/VerifyTests/Verify
- Loading branch information
Showing
93 changed files
with
2,388 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ paket.lock | |
.paket/paket.exe | ||
/Source/.paket/** | ||
__test | ||
**.received.** | ||
|
||
# User-specific files | ||
*.suo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Source/Coinbase.Tests/EndpointTests/AccountsTest.can_get_account.server.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "71452118-efc7-4cc4-8780-a5e22d4baa53", | ||
"currency": "BTC", | ||
"balance": "0.0000000000000000", | ||
"available": "0.0000000000000000", | ||
"hold": "0.0000000000000000", | ||
"profile_id": "75da88c5-05bf-4f54-bc85-5c775bd68254" | ||
} |
5 changes: 5 additions & 0 deletions
5
Source/Coinbase.Tests/EndpointTests/AccountsTest.can_get_account.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
id: Guid_1, | ||
currency: 'BTC', | ||
profile_id: Guid_2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_all_accounts.server.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"id": "71452118-efc7-4cc4-8780-a5e22d4baa53", | ||
"currency": "BTC", | ||
"balance": "0.0000000000000000", | ||
"available": "0.0000000000000000", | ||
"hold": "0.0000000000000000", | ||
"profile_id": "75da88c5-05bf-4f54-bc85-5c775bd68254" | ||
}, | ||
{ | ||
"id": "e316cb9a-0808-4fd7-8914-97829c1925de", | ||
"currency": "USD", | ||
"balance": "80.2301373066930000", | ||
"available": "79.2266348066930000", | ||
"hold": "1.0035025000000000", | ||
"profile_id": "75da88c5-05bf-4f54-bc85-5c775bd68254" | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_all_accounts.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
id: Guid_1, | ||
currency: 'BTC', | ||
profile_id: Guid_2 | ||
}, | ||
{ | ||
id: Guid_3, | ||
currency: 'USD', | ||
balance: 80.2301373066930000, | ||
available: 79.2266348066930000, | ||
hold: 1.0035025000000000, | ||
profile_id: Guid_2 | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_history.server.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"created_at": "2018-10-25T18:33:58.614187Z", | ||
"id": 44512583, | ||
"amount": "1000.0000000000000000", | ||
"balance": "1000.0000000000000000", | ||
"type": "transfer", | ||
"details": { | ||
"transfer_id": "ffff2937-ffff-ffff-ffff-44ae9640ffff", | ||
"transfer_type": "deposit" | ||
} | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_history.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
Data: [ | ||
{ | ||
id: '44512583', | ||
created_at: DateTimeOffset_1, | ||
amount: 1000.0000000000000000, | ||
balance: 1000.0000000000000000, | ||
type: 'transfer', | ||
details: { | ||
transfer_id: Guid_1, | ||
transfer_type: 'deposit' | ||
} | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_hold.server.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"id": "82dcd140-c3c7-4507-8de4-2c529cd1a28f", | ||
"account_id": "e0b3f39a-183d-453e-b754-0c13e5bab0b3", | ||
"created_at": "2014-11-06T10:34:47.123456Z", | ||
"updated_at": "2014-11-06T10:40:47.123456Z", | ||
"amount": "4.23", | ||
"type": "order", | ||
"ref": "0a205de4-dd35-4370-a285-fe8fc375a273", | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
Source/Coinbase.Tests/EndpointTests/AccountsTest.get_hold.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
Data: [ | ||
{ | ||
id: Guid_1, | ||
account_id: Guid_2, | ||
created_at: DateTimeOffset_1, | ||
updated_at: DateTimeOffset_2, | ||
amount: '4.23', | ||
type: 'order', | ||
ref: Guid_3 | ||
} | ||
] | ||
} |
File renamed without changes.
54 changes: 54 additions & 0 deletions
54
Source/Coinbase.Tests/EndpointTests/CoinbaseAccountsTest.coinbase_accounts.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[ | ||
{ | ||
id: Guid_1, | ||
name: 'ETH Wallet', | ||
currency: 'ETH', | ||
type: 'wallet', | ||
active: true | ||
}, | ||
{ | ||
id: Guid_2, | ||
name: 'USD Wallet', | ||
currency: 'USD', | ||
type: 'fiat', | ||
active: true, | ||
wire_deposit_information: { | ||
account_number: '0199003122', | ||
routing_number: '026013356', | ||
bank_name: 'Metropolitan Commercial Bank', | ||
bank_address: '99 Park Ave 4th Fl New York, NY 10016', | ||
bank_country: { | ||
code: 'US', | ||
name: 'United States' | ||
}, | ||
account_name: 'Coinbase, Inc', | ||
account_address: '548 Market Street, #23008, San Francisco, CA 94104', | ||
reference: 'BAOCAEUX' | ||
} | ||
}, | ||
{ | ||
id: Guid_3, | ||
name: 'BTC Wallet', | ||
currency: 'BTC', | ||
type: 'wallet', | ||
primary: true, | ||
active: true | ||
}, | ||
{ | ||
id: Guid_4, | ||
name: 'EUR Wallet', | ||
currency: 'EUR', | ||
type: 'fiat', | ||
active: true, | ||
sepa_deposit_information: { | ||
iban: 'EE957700771001355096', | ||
swift: 'LHVBEE22', | ||
bank_name: 'AS LHV Pank', | ||
bank_address: 'Tartu mnt 2, 10145 Tallinn, Estonia', | ||
bank_country_name: 'Estonia', | ||
account_name: 'Coinbase UK, Ltd.', | ||
account_address: '9th Floor, 107 Cheapside, London, EC2V 6DN, United Kingdom', | ||
reference: 'CBAEUXOVFXOXYX' | ||
} | ||
} | ||
] |
Oops, something went wrong.