@@ -16,7 +16,7 @@ public void CorrectRequestForReboot() {
1616
1717 client . Reboot ( 9001 ) ;
1818
19- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
19+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
2020 var body = Arg . Is < DropletAction > ( action => action . Type == "reboot" ) ;
2121 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
2222 parameters , body , "action" , Method . POST ) ;
@@ -29,7 +29,7 @@ public void CorrectRequestForPowerCycle() {
2929
3030 client . PowerCycle ( 9001 ) ;
3131
32- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
32+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
3333 var body = Arg . Is < DropletAction > ( action => action . Type == "power_cycle" ) ;
3434 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
3535 parameters , body , "action" , Method . POST ) ;
@@ -42,7 +42,7 @@ public void CorrectRequestForShutdown() {
4242
4343 client . Shutdown ( 9001 ) ;
4444
45- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
45+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
4646 var body = Arg . Is < DropletAction > ( action => action . Type == "shutdown" ) ;
4747 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
4848 parameters , body , "action" , Method . POST ) ;
@@ -55,7 +55,7 @@ public void CorrectRequestForPowerOff() {
5555
5656 client . PowerOff ( 9001 ) ;
5757
58- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
58+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
5959 var body = Arg . Is < DropletAction > ( action => action . Type == "power_off" ) ;
6060 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
6161 parameters , body , "action" , Method . POST ) ;
@@ -68,7 +68,7 @@ public void CorrectRequestForPowerOn() {
6868
6969 client . PowerOn ( 9001 ) ;
7070
71- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
71+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
7272 var body = Arg . Is < DropletAction > ( action => action . Type == "power_on" ) ;
7373 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
7474 parameters , body , "action" , Method . POST ) ;
@@ -81,7 +81,7 @@ public void CorrectRequestForResetPassword() {
8181
8282 client . ResetPassword ( 9001 ) ;
8383
84- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
84+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
8585 var body = Arg . Is < DropletAction > ( action => action . Type == "password_reset" ) ;
8686 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
8787 parameters , body , "action" , Method . POST ) ;
@@ -94,7 +94,7 @@ public void CorrectRequestForResize() {
9494
9595 client . Resize ( 9001 , "1024mb" , true ) ;
9696
97- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
97+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
9898 var body = Arg . Is < DropletAction > ( action => action . Type == "resize" && action . Size == "1024mb" && action . Disk == true ) ;
9999 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
100100 parameters , body , "action" , Method . POST ) ;
@@ -105,10 +105,10 @@ public void CorrectRequestForRestore() {
105105 var factory = Substitute . For < IConnection > ( ) ;
106106 var client = new DropletActionsClient ( factory ) ;
107107
108- client . Restore ( 9001 , 1009 ) ;
108+ client . Restore ( 9001 , 1009L ) ;
109109
110- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
111- var body = Arg . Is < DropletAction > ( action => action . Type == "restore" && ( int ) action . Image == 1009 ) ;
110+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
111+ var body = Arg . Is < DropletAction > ( action => action . Type == "restore" && ( long ) action . Image == 1009 ) ;
112112 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
113113 parameters , body , "action" , Method . POST ) ;
114114 }
@@ -118,10 +118,10 @@ public void CorrectRequestForRebuild() {
118118 var factory = Substitute . For < IConnection > ( ) ;
119119 var client = new DropletActionsClient ( factory ) ;
120120
121- client . Rebuild ( 9001 , 1009 ) ;
121+ client . Rebuild ( 9001 , 1009L ) ;
122122
123- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
124- var body = Arg . Is < DropletAction > ( action => action . Type == "rebuild" && ( int ) action . Image == 1009 ) ;
123+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
124+ var body = Arg . Is < DropletAction > ( action => action . Type == "rebuild" && ( long ) action . Image == 1009 ) ;
125125 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
126126 parameters , body , "action" , Method . POST ) ;
127127 }
@@ -133,7 +133,7 @@ public void CorrectRequestForRename() {
133133
134134 client . Rename ( 9001 , "testing" ) ;
135135
136- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
136+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
137137 var body = Arg . Is < DropletAction > ( action => action . Type == "rename" && action . Name == "testing" ) ;
138138 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
139139 parameters , body , "action" , Method . POST ) ;
@@ -146,7 +146,7 @@ public void CorrectRequestForKernel() {
146146
147147 client . ChangeKernel ( 9001 , 1009 ) ;
148148
149- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
149+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
150150 var body = Arg . Is < DropletAction > ( action => action . Type == "change_kernel" && action . KernelId == 1009 ) ;
151151 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
152152 parameters , body , "action" , Method . POST ) ;
@@ -159,7 +159,7 @@ public void CorrectRequestForIpv6() {
159159
160160 client . EnableIpv6 ( 9001 ) ;
161161
162- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
162+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
163163 var body = Arg . Is < DropletAction > ( action => action . Type == "enable_ipv6" ) ;
164164 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
165165 parameters , body , "action" , Method . POST ) ;
@@ -172,7 +172,7 @@ public void CorrectRequestForEnableBackups() {
172172
173173 client . EnableBackups ( 9001 ) ;
174174
175- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
175+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
176176 var body = Arg . Is < DropletAction > ( action => action . Type == "enable_backups" ) ;
177177 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
178178 parameters , body , "action" , Method . POST ) ;
@@ -185,7 +185,7 @@ public void CorrectRequestForDisableBackups() {
185185
186186 client . DisableBackups ( 9001 ) ;
187187
188- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
188+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
189189 var body = Arg . Is < DropletAction > ( action => action . Type == "disable_backups" ) ;
190190 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
191191 parameters , body , "action" , Method . POST ) ;
@@ -198,7 +198,7 @@ public void CorrectRequestForPrivateNetworking() {
198198
199199 client . EnablePrivateNetworking ( 9001 ) ;
200200
201- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
201+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
202202 var body = Arg . Is < DropletAction > ( action => action . Type == "enable_private_networking" ) ;
203203 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
204204 parameters , body , "action" , Method . POST ) ;
@@ -211,7 +211,7 @@ public void CorrectRequestForSnapshot() {
211211
212212 client . Snapshot ( 9001 , "testing" ) ;
213213
214- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
214+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 ) ;
215215 var body = Arg . Is < DropletAction > ( action => action . Type == "snapshot" && action . Name == "testing" ) ;
216216 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
217217 parameters , body , "action" , Method . POST ) ;
@@ -224,8 +224,8 @@ public void CorrectRequestForGetAction() {
224224
225225 client . GetDropletAction ( 9001 , 1009 ) ;
226226
227- var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 &&
228- ( int ) list [ 1 ] . Value == 1009 ) ;
227+ var parameters = Arg . Is < List < Parameter > > ( list => ( long ) list [ 0 ] . Value == 9001 &&
228+ ( long ) list [ 1 ] . Value == 1009 ) ;
229229 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions/{actionId}" ,
230230 parameters , null , "action" ) ;
231231 }
0 commit comments