@@ -9,7 +9,7 @@ namespace Microsoft.Azure.Cosmos.Tests
99 using Microsoft . VisualStudio . TestTools . UnitTesting ;
1010
1111 [ TestClass ]
12- public class BatchConfigurationTests
12+ public class ConfigurationManagerTests
1313 {
1414 private const string EnvironmentVariableName = "COSMOS_MAX_OPERATIONS_IN_DIRECT_MODE_BATCH_REQUEST" ;
1515
@@ -27,7 +27,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableNotS
2727 Environment . SetEnvironmentVariable ( EnvironmentVariableName , null ) ;
2828
2929 // Act
30- int result = BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
30+ int result = ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
3131
3232 // Assert
3333 Assert . AreEqual ( Constants . MaxOperationsInDirectModeBatchRequest , result ) ;
@@ -41,7 +41,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
4141 Environment . SetEnvironmentVariable ( EnvironmentVariableName , expectedValue . ToString ( ) ) ;
4242
4343 // Act
44- int result = BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
44+ int result = ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
4545
4646 // Assert
4747 Assert . AreEqual ( expectedValue , result ) ;
@@ -55,7 +55,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
5555 Environment . SetEnvironmentVariable ( EnvironmentVariableName , expectedValue . ToString ( ) ) ;
5656
5757 // Act
58- int result = BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
58+ int result = ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
5959
6060 // Assert
6161 Assert . AreEqual ( expectedValue , result ) ;
@@ -71,7 +71,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
7171 Environment . SetEnvironmentVariable ( EnvironmentVariableName , valueGreaterThanMax . ToString ( ) ) ;
7272
7373 // Act
74- BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
74+ ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
7575
7676 // Assert - ExpectedException
7777 }
@@ -84,7 +84,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
8484 Environment . SetEnvironmentVariable ( EnvironmentVariableName , "0" ) ;
8585
8686 // Act
87- BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
87+ ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
8888
8989 // Assert - ExpectedException
9090 }
@@ -97,7 +97,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
9797 Environment . SetEnvironmentVariable ( EnvironmentVariableName , "-1" ) ;
9898
9999 // Act
100- BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
100+ ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
101101
102102 // Assert - ExpectedException
103103 }
@@ -110,7 +110,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
110110 Environment . SetEnvironmentVariable ( EnvironmentVariableName , "invalid" ) ;
111111
112112 // Act
113- BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
113+ ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
114114
115115 // Assert - ExpectedException
116116 }
@@ -122,7 +122,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
122122 Environment . SetEnvironmentVariable ( EnvironmentVariableName , "" ) ;
123123
124124 // Act
125- int result = BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
125+ int result = ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
126126
127127 // Assert
128128 Assert . AreEqual ( Constants . MaxOperationsInDirectModeBatchRequest , result ) ;
@@ -136,7 +136,7 @@ public void GetMaxOperationsInDirectModeBatchRequest_WhenEnvironmentVariableSetT
136136 Environment . SetEnvironmentVariable ( EnvironmentVariableName , expectedValue . ToString ( ) ) ;
137137
138138 // Act
139- int result = BatchConfiguration . GetMaxOperationsInDirectModeBatchRequest ( ) ;
139+ int result = ConfigurationManager . GetMaxOperationsInDirectModeBatchRequest ( ) ;
140140
141141 // Assert
142142 Assert . AreEqual ( expectedValue , result ) ;
0 commit comments