@@ -11,7 +11,7 @@ namespace DigitalOcean.API.Tests.Clients {
1111 public class DropletActionsClientTest {
1212 [ Fact ]
1313 public void CorrectRequestForReboot ( ) {
14- var factory = Substitute . For < IConnection > ( ) ;
14+ var factory = Substitute . For < IConnection > ( ) ;
1515 var client = new DropletActionsClient ( factory ) ;
1616
1717 client . Reboot ( 9001 ) ;
@@ -24,7 +24,7 @@ public void CorrectRequestForReboot() {
2424
2525 [ Fact ]
2626 public void CorrectRequestForPowerCycle ( ) {
27- var factory = Substitute . For < IConnection > ( ) ;
27+ var factory = Substitute . For < IConnection > ( ) ;
2828 var client = new DropletActionsClient ( factory ) ;
2929
3030 client . PowerCycle ( 9001 ) ;
@@ -37,7 +37,7 @@ public void CorrectRequestForPowerCycle() {
3737
3838 [ Fact ]
3939 public void CorrectRequestForShutdown ( ) {
40- var factory = Substitute . For < IConnection > ( ) ;
40+ var factory = Substitute . For < IConnection > ( ) ;
4141 var client = new DropletActionsClient ( factory ) ;
4242
4343 client . Shutdown ( 9001 ) ;
@@ -50,7 +50,7 @@ public void CorrectRequestForShutdown() {
5050
5151 [ Fact ]
5252 public void CorrectRequestForPowerOff ( ) {
53- var factory = Substitute . For < IConnection > ( ) ;
53+ var factory = Substitute . For < IConnection > ( ) ;
5454 var client = new DropletActionsClient ( factory ) ;
5555
5656 client . PowerOff ( 9001 ) ;
@@ -63,7 +63,7 @@ public void CorrectRequestForPowerOff() {
6363
6464 [ Fact ]
6565 public void CorrectRequestForPowerOn ( ) {
66- var factory = Substitute . For < IConnection > ( ) ;
66+ var factory = Substitute . For < IConnection > ( ) ;
6767 var client = new DropletActionsClient ( factory ) ;
6868
6969 client . PowerOn ( 9001 ) ;
@@ -76,7 +76,7 @@ public void CorrectRequestForPowerOn() {
7676
7777 [ Fact ]
7878 public void CorrectRequestForResetPassword ( ) {
79- var factory = Substitute . For < IConnection > ( ) ;
79+ var factory = Substitute . For < IConnection > ( ) ;
8080 var client = new DropletActionsClient ( factory ) ;
8181
8282 client . ResetPassword ( 9001 ) ;
@@ -89,46 +89,46 @@ public void CorrectRequestForResetPassword() {
8989
9090 [ Fact ]
9191 public void CorrectRequestForResize ( ) {
92- var factory = Substitute . For < IConnection > ( ) ;
92+ var factory = Substitute . For < IConnection > ( ) ;
9393 var client = new DropletActionsClient ( factory ) ;
9494
9595 client . Resize ( 9001 , "1024mb" , true ) ;
9696
9797 var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
98- var body = Arg . Is < DropletAction > ( action => action . Type == "resize" && action . SizeSlug == "1024mb" && action . Disk == true ) ;
98+ 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 ) ;
101101 }
102102
103103 [ Fact ]
104104 public void CorrectRequestForRestore ( ) {
105- var factory = Substitute . For < IConnection > ( ) ;
105+ var factory = Substitute . For < IConnection > ( ) ;
106106 var client = new DropletActionsClient ( factory ) ;
107107
108108 client . Restore ( 9001 , 1009 ) ;
109109
110110 var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
111- var body = Arg . Is < DropletAction > ( action => action . Type == "restore" && ( int ) action . ImageIdOrSlug == 1009 ) ;
111+ var body = Arg . Is < DropletAction > ( action => action . Type == "restore" && ( int ) action . Image == 1009 ) ;
112112 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
113113 parameters , body , "action" , Method . POST ) ;
114114 }
115115
116116 [ Fact ]
117117 public void CorrectRequestForRebuild ( ) {
118- var factory = Substitute . For < IConnection > ( ) ;
118+ var factory = Substitute . For < IConnection > ( ) ;
119119 var client = new DropletActionsClient ( factory ) ;
120120
121121 client . Rebuild ( 9001 , 1009 ) ;
122122
123123 var parameters = Arg . Is < List < Parameter > > ( list => ( int ) list [ 0 ] . Value == 9001 ) ;
124- var body = Arg . Is < DropletAction > ( action => action . Type == "rebuild" && ( int ) action . ImageIdOrSlug == 1009 ) ;
124+ var body = Arg . Is < DropletAction > ( action => action . Type == "rebuild" && ( int ) action . Image == 1009 ) ;
125125 factory . Received ( ) . ExecuteRequest < Models . Responses . Action > ( "droplets/{dropletId}/actions" ,
126126 parameters , body , "action" , Method . POST ) ;
127127 }
128128
129129 [ Fact ]
130130 public void CorrectRequestForRename ( ) {
131- var factory = Substitute . For < IConnection > ( ) ;
131+ var factory = Substitute . For < IConnection > ( ) ;
132132 var client = new DropletActionsClient ( factory ) ;
133133
134134 client . Rename ( 9001 , "testing" ) ;
@@ -154,7 +154,7 @@ public void CorrectRequestForKernel() {
154154
155155 [ Fact ]
156156 public void CorrectRequestForIpv6 ( ) {
157- var factory = Substitute . For < IConnection > ( ) ;
157+ var factory = Substitute . For < IConnection > ( ) ;
158158 var client = new DropletActionsClient ( factory ) ;
159159
160160 client . EnableIpv6 ( 9001 ) ;
@@ -180,7 +180,7 @@ public void CorrectRequestForEnableBackups() {
180180
181181 [ Fact ]
182182 public void CorrectRequestForDisableBackups ( ) {
183- var factory = Substitute . For < IConnection > ( ) ;
183+ var factory = Substitute . For < IConnection > ( ) ;
184184 var client = new DropletActionsClient ( factory ) ;
185185
186186 client . DisableBackups ( 9001 ) ;
@@ -193,7 +193,7 @@ public void CorrectRequestForDisableBackups() {
193193
194194 [ Fact ]
195195 public void CorrectRequestForPrivateNetworking ( ) {
196- var factory = Substitute . For < IConnection > ( ) ;
196+ var factory = Substitute . For < IConnection > ( ) ;
197197 var client = new DropletActionsClient ( factory ) ;
198198
199199 client . EnablePrivateNetworking ( 9001 ) ;
@@ -206,7 +206,7 @@ public void CorrectRequestForPrivateNetworking() {
206206
207207 [ Fact ]
208208 public void CorrectRequestForSnapshot ( ) {
209- var factory = Substitute . For < IConnection > ( ) ;
209+ var factory = Substitute . For < IConnection > ( ) ;
210210 var client = new DropletActionsClient ( factory ) ;
211211
212212 client . Snapshot ( 9001 , "testing" ) ;
@@ -219,7 +219,7 @@ public void CorrectRequestForSnapshot() {
219219
220220 [ Fact ]
221221 public void CorrectRequestForGetAction ( ) {
222- var factory = Substitute . For < IConnection > ( ) ;
222+ var factory = Substitute . For < IConnection > ( ) ;
223223 var client = new DropletActionsClient ( factory ) ;
224224
225225 client . GetDropletAction ( 9001 , 1009 ) ;
0 commit comments