@@ -56,6 +56,7 @@ public void NewAzureDedicatedCircuitSuccessful()
56
56
string serviceProviderName = "TestProvider" ;
57
57
string location = "us-west" ;
58
58
string serviceKey = "aa28cd19-b10a-41ff-981b-53c6bbf15ead" ;
59
+ BillingType billingType = BillingType . UnlimitedData ;
59
60
60
61
MockCommandRuntime mockCommandRuntime = new MockCommandRuntime ( ) ;
61
62
Mock < ExpressRouteManagementClient > client = InitExpressRouteManagementClient ( ) ;
@@ -68,6 +69,7 @@ public void NewAzureDedicatedCircuitSuccessful()
68
69
{
69
70
CircuitName = circuitName ,
70
71
Bandwidth = bandwidth ,
72
+ BillingType = billingType . ToString ( ) ,
71
73
Location = location ,
72
74
ServiceProviderName = serviceProviderName ,
73
75
ServiceKey = serviceKey ,
@@ -97,6 +99,7 @@ public void NewAzureDedicatedCircuitSuccessful()
97
99
{
98
100
CircuitName = circuitName ,
99
101
Bandwidth = bandwidth ,
102
+ BillingType = billingType ,
100
103
Location = location ,
101
104
ServiceProviderName = serviceProviderName ,
102
105
CommandRuntime = mockCommandRuntime ,
@@ -108,6 +111,7 @@ public void NewAzureDedicatedCircuitSuccessful()
108
111
// Assert
109
112
AzureDedicatedCircuit actual = mockCommandRuntime . OutputPipeline [ 0 ] as AzureDedicatedCircuit ;
110
113
Assert . Equal < string > ( expected . DedicatedCircuit . CircuitName , actual . CircuitName ) ;
114
+ Assert . Equal < string > ( expected . DedicatedCircuit . BillingType , actual . BillingType ) ;
111
115
Assert . Equal < uint > ( expected . DedicatedCircuit . Bandwidth , actual . Bandwidth ) ;
112
116
Assert . Equal < string > ( expected . DedicatedCircuit . Location , actual . Location ) ;
113
117
Assert . Equal < string > ( expected . DedicatedCircuit . ServiceProviderName , actual . ServiceProviderName ) ;
@@ -127,6 +131,7 @@ public void GetAzureDedicatedCircuitSuccessful()
127
131
string serviceProviderName = "TestProvider" ;
128
132
string location = "us-west" ;
129
133
string serviceKey = "aa28cd19-b10a-41ff-981b-53c6bbf15ead" ;
134
+ BillingType billingType = BillingType . MeteredData ;
130
135
131
136
MockCommandRuntime mockCommandRuntime = new MockCommandRuntime ( ) ;
132
137
Mock < ExpressRouteManagementClient > client = InitExpressRouteManagementClient ( ) ;
@@ -139,6 +144,7 @@ public void GetAzureDedicatedCircuitSuccessful()
139
144
{
140
145
CircuitName = circuitName ,
141
146
Bandwidth = bandwidth ,
147
+ BillingType = billingType . ToString ( ) ,
142
148
Location = location ,
143
149
ServiceProviderName = serviceProviderName ,
144
150
ServiceKey = serviceKey ,
@@ -165,6 +171,7 @@ public void GetAzureDedicatedCircuitSuccessful()
165
171
166
172
// Assert
167
173
AzureDedicatedCircuit actual = mockCommandRuntime . OutputPipeline [ 0 ] as AzureDedicatedCircuit ;
174
+ Assert . Equal < string > ( expected . DedicatedCircuit . BillingType , actual . BillingType ) ;
168
175
Assert . Equal < string > ( expected . DedicatedCircuit . CircuitName , actual . CircuitName ) ;
169
176
Assert . Equal < uint > ( expected . DedicatedCircuit . Bandwidth , actual . Bandwidth ) ;
170
177
Assert . Equal < string > ( expected . DedicatedCircuit . Location , actual . Location ) ;
@@ -219,20 +226,22 @@ public void ListAzureDedicatedCircuitSuccessful()
219
226
string serviceProviderName1 = "TestProvider" ;
220
227
string location1 = "us-west" ;
221
228
string serviceKey1 = "aa28cd19-b10a-41ff-981b-53c6bbf15ead" ;
229
+ BillingType billingType1 = BillingType . MeteredData ;
222
230
223
231
string circuitName2 = "TestCircuit2" ;
224
232
uint bandwidth2 = 10 ;
225
233
string serviceProviderName2 = "TestProvider" ;
226
234
string location2 = "us-north" ;
227
235
string serviceKey2 = "bc28cd19-b10a-41ff-981b-53c6bbf15ead" ;
236
+ BillingType billingType2 = BillingType . UnlimitedData ;
228
237
229
238
MockCommandRuntime mockCommandRuntime = new MockCommandRuntime ( ) ;
230
239
Mock < ExpressRouteManagementClient > client = InitExpressRouteManagementClient ( ) ;
231
240
var dcMock = new Mock < IDedicatedCircuitOperations > ( ) ;
232
241
233
242
List < AzureDedicatedCircuit > dedicatedCircuits = new List < AzureDedicatedCircuit > ( ) {
234
- new AzureDedicatedCircuit ( ) { Bandwidth = bandwidth1 , CircuitName = circuitName1 , ServiceKey = serviceKey1 , Location = location1 , ServiceProviderName = serviceProviderName1 , ServiceProviderProvisioningState = ProviderProvisioningState . NotProvisioned , Status = DedicatedCircuitState . Enabled } ,
235
- new AzureDedicatedCircuit ( ) { Bandwidth = bandwidth2 , CircuitName = circuitName2 , ServiceKey = serviceKey2 , Location = location2 , ServiceProviderName = serviceProviderName2 , ServiceProviderProvisioningState = ProviderProvisioningState . Provisioned , Status = DedicatedCircuitState . Enabled }
243
+ new AzureDedicatedCircuit ( ) { Bandwidth = bandwidth1 , BillingType = billingType1 . ToString ( ) , CircuitName = circuitName1 , ServiceKey = serviceKey1 , Location = location1 , ServiceProviderName = serviceProviderName1 , ServiceProviderProvisioningState = ProviderProvisioningState . NotProvisioned , Status = DedicatedCircuitState . Enabled } ,
244
+ new AzureDedicatedCircuit ( ) { Bandwidth = bandwidth2 , BillingType = billingType2 . ToString ( ) , CircuitName = circuitName2 , ServiceKey = serviceKey2 , Location = location2 , ServiceProviderName = serviceProviderName2 , ServiceProviderProvisioningState = ProviderProvisioningState . Provisioned , Status = DedicatedCircuitState . Enabled }
236
245
} ;
237
246
238
247
DedicatedCircuitListResponse expected =
0 commit comments