@@ -40,15 +40,15 @@ public class TestApplicationSettingsRepository : ApplicationFixtureBase
40
40
[ SetUp ]
41
41
public void SetUp ( )
42
42
{
43
- hkcu . DeleteSubKeyTree ( TestKeyPath , false ) ;
44
- hkcu . DeleteSubKeyTree ( TestMachinePolicyKeyPath , false ) ;
45
- hkcu . DeleteSubKeyTree ( TestUserPolicyKeyPath , false ) ;
43
+ this . hkcu . DeleteSubKeyTree ( TestKeyPath , false ) ;
44
+ this . hkcu . DeleteSubKeyTree ( TestMachinePolicyKeyPath , false ) ;
45
+ this . hkcu . DeleteSubKeyTree ( TestUserPolicyKeyPath , false ) ;
46
46
}
47
47
48
48
[ Test ]
49
49
public void WhenKeyEmpty_ThenDefaultsAreProvided ( )
50
50
{
51
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
51
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
52
52
{
53
53
var repository = new ApplicationSettingsRepository ( settingsKey , null , null ) ;
54
54
@@ -65,7 +65,7 @@ public void WhenKeyEmpty_ThenDefaultsAreProvided()
65
65
[ Test ]
66
66
public void WhenSettingsSaved_ThenSettingsCanBeRead ( )
67
67
{
68
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
68
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
69
69
{
70
70
var repository = new ApplicationSettingsRepository ( settingsKey , null , null ) ;
71
71
@@ -94,7 +94,7 @@ public void WhenSettingsSaved_ThenSettingsCanBeRead()
94
94
[ Test ]
95
95
public void WhenProxyUrlInvalid_ThenSetValueThrowsArgumentOutOfRangeException ( )
96
96
{
97
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
97
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
98
98
{
99
99
var repository = new ApplicationSettingsRepository ( settingsKey , null , null ) ;
100
100
@@ -109,9 +109,9 @@ public void WhenProxyUrlInvalid_ThenSetValueThrowsArgumentOutOfRangeException()
109
109
[ Test ]
110
110
public void WhenProxyUrlValidAndUserPolicySet_ThenPolicyWins ( )
111
111
{
112
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
113
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
114
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
112
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
113
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
114
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
115
115
{
116
116
var repository = new ApplicationSettingsRepository (
117
117
settingsKey ,
@@ -130,9 +130,9 @@ public void WhenProxyUrlValidAndUserPolicySet_ThenPolicyWins()
130
130
[ Test ]
131
131
public void WhenProxyUrlValidAndMachinePolicySet_ThenPolicyWins ( )
132
132
{
133
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
134
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
135
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
133
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
134
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
135
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
136
136
{
137
137
var repository = new ApplicationSettingsRepository (
138
138
settingsKey ,
@@ -151,9 +151,9 @@ public void WhenProxyUrlValidAndMachinePolicySet_ThenPolicyWins()
151
151
[ Test ]
152
152
public void WhenProxyUrlValidAndUserAndMachinePolicySet_ThenMachinePolicyWins ( )
153
153
{
154
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
155
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
156
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
154
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
155
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
156
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
157
157
{
158
158
var repository = new ApplicationSettingsRepository (
159
159
settingsKey ,
@@ -177,7 +177,7 @@ public void WhenProxyUrlValidAndUserAndMachinePolicySet_ThenMachinePolicyWins()
177
177
[ Test ]
178
178
public void WhenProxyPacUrlInvalid_ThenSetValueThrowsArgumentOutOfRangeException ( )
179
179
{
180
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
180
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
181
181
{
182
182
var repository = new ApplicationSettingsRepository ( settingsKey , null , null ) ;
183
183
@@ -192,9 +192,9 @@ public void WhenProxyPacUrlInvalid_ThenSetValueThrowsArgumentOutOfRangeException
192
192
[ Test ]
193
193
public void WhenProxyPacUrlValidAndUserPolicySet_ThenPolicyWins ( )
194
194
{
195
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
196
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
197
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
195
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
196
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
197
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
198
198
{
199
199
var repository = new ApplicationSettingsRepository (
200
200
settingsKey ,
@@ -213,9 +213,9 @@ public void WhenProxyPacUrlValidAndUserPolicySet_ThenPolicyWins()
213
213
[ Test ]
214
214
public void WhenProxyPacUrlValidAndMachinePolicySet_ThenPolicyWins ( )
215
215
{
216
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
217
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
218
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
216
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
217
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
218
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
219
219
{
220
220
var repository = new ApplicationSettingsRepository (
221
221
settingsKey ,
@@ -234,9 +234,9 @@ public void WhenProxyPacUrlValidAndMachinePolicySet_ThenPolicyWins()
234
234
[ Test ]
235
235
public void WhenProxyPacUrlValidAndUserAndMachinePolicySet_ThenMachinePolicyWins ( )
236
236
{
237
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
238
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
239
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
237
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
238
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
239
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
240
240
{
241
241
var repository = new ApplicationSettingsRepository (
242
242
settingsKey ,
@@ -260,7 +260,7 @@ public void WhenProxyPacUrlValidAndUserAndMachinePolicySet_ThenMachinePolicyWins
260
260
[ Test ]
261
261
public void WhenIsUpdateCheckEnabledValid_ThenSettingWins ( )
262
262
{
263
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
263
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
264
264
{
265
265
var repository = new ApplicationSettingsRepository (
266
266
settingsKey ,
@@ -278,9 +278,9 @@ public void WhenIsUpdateCheckEnabledValid_ThenSettingWins()
278
278
[ Test ]
279
279
public void WhenIsUpdateCheckEnabledValidAndUserPolicySet_ThenPolicyWins ( )
280
280
{
281
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
282
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
283
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
281
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
282
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
283
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
284
284
{
285
285
var repository = new ApplicationSettingsRepository (
286
286
settingsKey ,
@@ -299,9 +299,9 @@ public void WhenIsUpdateCheckEnabledValidAndUserPolicySet_ThenPolicyWins()
299
299
[ Test ]
300
300
public void WhenIsUpdateCheckEnabledValidAndMachinePolicySet_ThenPolicyWins ( )
301
301
{
302
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
303
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
304
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
302
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
303
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
304
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
305
305
{
306
306
var repository = new ApplicationSettingsRepository (
307
307
settingsKey ,
@@ -320,9 +320,9 @@ public void WhenIsUpdateCheckEnabledValidAndMachinePolicySet_ThenPolicyWins()
320
320
[ Test ]
321
321
public void WhenIsUpdateCheckEnabledValidAndUserAndMachinePolicySet_ThenMachinePolicyWins ( )
322
322
{
323
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
324
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
325
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
323
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
324
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
325
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
326
326
{
327
327
var repository = new ApplicationSettingsRepository (
328
328
settingsKey ,
@@ -346,7 +346,7 @@ public void WhenIsUpdateCheckEnabledValidAndUserAndMachinePolicySet_ThenMachineP
346
346
[ Test ]
347
347
public void WhenIsDeviceCertificateAuthenticationEnabledValid_ThenSettingWins ( )
348
348
{
349
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
349
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
350
350
{
351
351
var repository = new ApplicationSettingsRepository (
352
352
settingsKey ,
@@ -364,9 +364,9 @@ public void WhenIsDeviceCertificateAuthenticationEnabledValid_ThenSettingWins()
364
364
[ Test ]
365
365
public void WhenIsDeviceCertificateAuthenticationEnabledValidAndUserPolicySet_ThenPolicyWins ( )
366
366
{
367
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
368
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
369
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
367
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
368
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
369
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
370
370
{
371
371
var repository = new ApplicationSettingsRepository (
372
372
settingsKey ,
@@ -385,9 +385,9 @@ public void WhenIsDeviceCertificateAuthenticationEnabledValidAndUserPolicySet_Th
385
385
[ Test ]
386
386
public void WhenIsDeviceCertificateAuthenticationEnabledValidAndMachinePolicySet_ThenPolicyWins ( )
387
387
{
388
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
389
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
390
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
388
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
389
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
390
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
391
391
{
392
392
var repository = new ApplicationSettingsRepository (
393
393
settingsKey ,
@@ -406,9 +406,9 @@ public void WhenIsDeviceCertificateAuthenticationEnabledValidAndMachinePolicySet
406
406
[ Test ]
407
407
public void WhenIsDeviceCertificateAuthenticationEnabledValidAndUserAndMachinePolicySet_ThenMachinePolicyWins ( )
408
408
{
409
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
410
- using ( var machinePolicyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
411
- using ( var userPolicyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
409
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
410
+ using ( var machinePolicyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
411
+ using ( var userPolicyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
412
412
{
413
413
var repository = new ApplicationSettingsRepository (
414
414
settingsKey ,
@@ -432,7 +432,7 @@ public void WhenIsDeviceCertificateAuthenticationEnabledValidAndUserAndMachinePo
432
432
[ Test ]
433
433
public void WhenMachineAndUserPolicyKeysAreNull_ThenIsPolicyPresentReturnsFalse ( )
434
434
{
435
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
435
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
436
436
{
437
437
var repository = new ApplicationSettingsRepository ( settingsKey , null , null ) ;
438
438
@@ -443,8 +443,8 @@ public void WhenMachineAndUserPolicyKeysAreNull_ThenIsPolicyPresentReturnsFalse(
443
443
[ Test ]
444
444
public void WhenMachinePolicyKeyExists_ThenIsPolicyPresentReturnsTrue ( )
445
445
{
446
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
447
- using ( var policyKey = hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
446
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
447
+ using ( var policyKey = this . hkcu . CreateSubKey ( TestMachinePolicyKeyPath ) )
448
448
{
449
449
var repository = new ApplicationSettingsRepository ( settingsKey , policyKey , null ) ;
450
450
@@ -455,8 +455,8 @@ public void WhenMachinePolicyKeyExists_ThenIsPolicyPresentReturnsTrue()
455
455
[ Test ]
456
456
public void WhenUserPolicyKeyExists_ThenIsPolicyPresentReturnsTrue ( )
457
457
{
458
- using ( var settingsKey = hkcu . CreateSubKey ( TestKeyPath ) )
459
- using ( var policyKey = hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
458
+ using ( var settingsKey = this . hkcu . CreateSubKey ( TestKeyPath ) )
459
+ using ( var policyKey = this . hkcu . CreateSubKey ( TestUserPolicyKeyPath ) )
460
460
{
461
461
var repository = new ApplicationSettingsRepository ( settingsKey , null , policyKey ) ;
462
462
0 commit comments