1
1
using NUnit . Framework ;
2
2
using Xero . Api . Common ;
3
+ using Xero . Api . Core . Endpoints ;
3
4
using Xero . Api . Core . Endpoints . Base ;
5
+ using Xero . Api . Core . Model ;
6
+ using Xero . Api . Core . Request ;
7
+ using Xero . Api . Core . Response ;
4
8
using Xero . Api . Infrastructure . Interfaces ;
5
9
6
10
namespace CoreTests . Unit
@@ -11,109 +15,109 @@ public class FourDecimalPlaces : ApiWrapperTest
11
15
[ Test ]
12
16
public void explict_four_decimal_places_invoices ( )
13
17
{
14
- ExplictUse4Dp ( Api . Invoices , "unitdp=4&page=1" ) ;
18
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < InvoicesEndpoint , Invoice , InvoicesRequest , InvoicesResponse > ) Api . Invoices , "unitdp=4&page=1" ) ;
15
19
}
16
20
17
21
[ Test ]
18
22
public void implict_four_decimal_places_invoice ( )
19
23
{
20
- ImplicitUse4Dp ( Api . Invoices , "unitdp=4&page=1" ) ;
24
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < InvoicesEndpoint , Invoice , InvoicesRequest , InvoicesResponse > ) Api . Invoices , "unitdp=4&page=1" ) ;
21
25
}
22
26
23
27
[ Test ]
24
28
public void no_four_decimal_places_invoice ( )
25
29
{
26
- ExplicitNotUse4Dp ( Api . Invoices , "page=1" ) ;
30
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < InvoicesEndpoint , Invoice , InvoicesRequest , InvoicesResponse > ) Api . Invoices , "page=1" ) ;
27
31
}
28
32
29
33
[ Test ]
30
34
public void no_four_decimal_places_bank_transactions ( )
31
35
{
32
- ExplicitNotUse4Dp ( Api . BankTransactions ) ;
36
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < BankTransactionsEndpoint , BankTransaction , BankTransactionsRequest , BankTransactionsResponse > ) Api . BankTransactions ) ;
33
37
}
34
38
35
39
[ Test ]
36
40
public void explict_four_decimal_places_bank_transactions ( )
37
41
{
38
- ExplictUse4Dp ( Api . BankTransactions ) ;
42
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < BankTransactionsEndpoint , BankTransaction , BankTransactionsRequest , BankTransactionsResponse > ) Api . BankTransactions ) ;
39
43
}
40
44
41
45
[ Test ]
42
46
public void implict_four_decimal_places_bank_transactions ( )
43
47
{
44
- ImplicitUse4Dp ( Api . BankTransactions ) ;
48
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < BankTransactionsEndpoint , BankTransaction , BankTransactionsRequest , BankTransactionsResponse > ) Api . BankTransactions ) ;
45
49
}
46
50
47
51
[ Test ]
48
52
public void no_four_decimal_places_credit_notes ( )
49
53
{
50
- ExplicitNotUse4Dp ( Api . CreditNotes ) ;
54
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < CreditNotesEndpoint , CreditNote , CreditNotesRequest , CreditNotesResponse > ) Api . CreditNotes ) ;
51
55
}
52
56
53
57
[ Test ]
54
58
public void explict_four_decimal_places_credit_notes ( )
55
59
{
56
- ExplictUse4Dp ( Api . CreditNotes ) ;
60
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < CreditNotesEndpoint , CreditNote , CreditNotesRequest , CreditNotesResponse > ) Api . CreditNotes ) ;
57
61
}
58
62
59
63
[ Test ]
60
64
public void implict_four_decimal_places_credit_notes ( )
61
65
{
62
- ImplicitUse4Dp ( Api . CreditNotes ) ;
66
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < CreditNotesEndpoint , CreditNote , CreditNotesRequest , CreditNotesResponse > ) Api . CreditNotes ) ;
63
67
}
64
68
65
69
[ Test ]
66
70
public void no_four_decimal_places_reciepts ( )
67
71
{
68
- ExplicitNotUse4Dp ( Api . Receipts ) ;
72
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < ReceiptsEndpoint , Receipt , ReceiptsRequest , ReceiptsResponse > ) Api . Receipts ) ;
69
73
}
70
74
71
75
[ Test ]
72
76
public void explict_four_decimal_places_reciepts ( )
73
77
{
74
- ExplictUse4Dp ( Api . Receipts ) ;
78
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < ReceiptsEndpoint , Receipt , ReceiptsRequest , ReceiptsResponse > ) Api . Receipts ) ;
75
79
}
76
80
77
81
[ Test ]
78
82
public void implict_four_decimal_places_reciepts ( )
79
83
{
80
- ImplicitUse4Dp ( Api . Receipts ) ;
84
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < ReceiptsEndpoint , Receipt , ReceiptsRequest , ReceiptsResponse > ) Api . Receipts ) ;
81
85
}
82
86
83
87
[ Test ]
84
88
public void no_four_decimal_places_payments ( )
85
89
{
86
- ExplicitNotUse4Dp ( Api . Payments ) ;
90
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < PaymentsEndpoint , Payment , PaymentsRequest , PaymentsResponse > ) Api . Payments ) ;
87
91
}
88
92
89
93
[ Test ]
90
94
public void explict_four_decimal_places_payments ( )
91
95
{
92
- ExplictUse4Dp ( Api . Payments ) ;
96
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < PaymentsEndpoint , Payment , PaymentsRequest , PaymentsResponse > ) Api . Payments ) ;
93
97
}
94
98
95
99
[ Test ]
96
100
public void implict_four_decimal_places_payments ( )
97
101
{
98
- ImplicitUse4Dp ( Api . Payments ) ;
102
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < PaymentsEndpoint , Payment , PaymentsRequest , PaymentsResponse > ) Api . Payments ) ;
99
103
}
100
104
101
105
[ Test ]
102
106
public void no_four_decimal_places_items ( )
103
107
{
104
- ExplicitNotUse4Dp ( Api . Items ) ;
108
+ ExplicitNotUse4Dp ( ( FourDecimalPlacesEndpoint < ItemsEndpoint , Item , ItemsRequest , ItemsResponse > ) Api . Items ) ;
105
109
}
106
110
107
111
[ Test ]
108
112
public void explict_four_decimal_places_items ( )
109
113
{
110
- ExplictUse4Dp ( Api . Items ) ;
114
+ ExplictUse4Dp ( ( FourDecimalPlacesEndpoint < ItemsEndpoint , Item , ItemsRequest , ItemsResponse > ) Api . Items ) ;
111
115
}
112
116
113
117
[ Test ]
114
118
public void implict_four_decimal_places_items ( )
115
119
{
116
- ImplicitUse4Dp ( Api . Items ) ;
120
+ ImplicitUse4Dp ( ( FourDecimalPlacesEndpoint < ItemsEndpoint , Item , ItemsRequest , ItemsResponse > ) Api . Items ) ;
117
121
}
118
122
119
123
[ Test ]
0 commit comments