@@ -27,7 +27,7 @@ public class InsertTest : ClaimSetTests
27
27
[ SetUp ]
28
28
public async Task Setup ( )
29
29
{
30
- ClaimSetInsertCommand claimSet = new ( ) { Name = "Test ClaimSet" } ;
30
+ ClaimSetInsertCommand claimSet = new ( ) { Name = "Test- ClaimSet" } ;
31
31
32
32
var result = await _repository . InsertClaimSet ( claimSet ) ;
33
33
result . Should ( ) . BeOfType < ClaimSetInsertResult . Success > ( ) ;
@@ -49,7 +49,7 @@ public async Task Should_get_test_claimSet_from_get_all()
49
49
claimSetFromDb . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
50
50
51
51
var reducedResponse = ( ClaimSetResponseReduced ) claimSetFromDb ;
52
- reducedResponse . Name . Should ( ) . Be ( "Test ClaimSet" ) ;
52
+ reducedResponse . Name . Should ( ) . Be ( "Test- ClaimSet" ) ;
53
53
}
54
54
55
55
[ Test ]
@@ -62,13 +62,13 @@ public async Task Should_get_test_claimSet_from_get_by_id()
62
62
claimSetFromDb . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
63
63
64
64
var reducedResponse = ( ClaimSetResponseReduced ) claimSetFromDb ;
65
- reducedResponse . Name . Should ( ) . Be ( "Test ClaimSet" ) ;
65
+ reducedResponse . Name . Should ( ) . Be ( "Test- ClaimSet" ) ;
66
66
}
67
67
68
68
[ Test ]
69
69
public async Task Should_get_duplicate_failure ( )
70
70
{
71
- ClaimSetInsertCommand claimSetDup = new ( ) { Name = "Test ClaimSet" } ;
71
+ ClaimSetInsertCommand claimSetDup = new ( ) { Name = "Test- ClaimSet" } ;
72
72
73
73
var resultDup = await _repository . InsertClaimSet ( claimSetDup ) ;
74
74
resultDup . Should ( ) . BeOfType < ClaimSetInsertResult . FailureDuplicateClaimSetName > ( ) ;
@@ -84,15 +84,15 @@ public class UpdateTests : ClaimSetTests
84
84
[ SetUp ]
85
85
public async Task Setup ( )
86
86
{
87
- _insertClaimSet = new ClaimSetInsertCommand ( ) { Name = "Test Insert ClaimSet" } ;
87
+ _insertClaimSet = new ClaimSetInsertCommand ( ) { Name = "Test- Insert- ClaimSet" } ;
88
88
89
- _updateClaimSet = new ClaimSetUpdateCommand ( ) { Name = "Test Update ClaimSet" } ;
89
+ _updateClaimSet = new ClaimSetUpdateCommand ( ) { Name = "Test- Update- ClaimSet" } ;
90
90
91
91
var insertResult = await _repository . InsertClaimSet ( _insertClaimSet ) ;
92
92
insertResult . Should ( ) . BeOfType < ClaimSetInsertResult . Success > ( ) ;
93
93
94
94
_updateClaimSet . Id = ( insertResult as ClaimSetInsertResult . Success ) ! . Id ;
95
- _updateClaimSet . Name = "Test Update ClaimSet" ;
95
+ _updateClaimSet . Name = "Test- Update- ClaimSet" ;
96
96
97
97
var updateResult = await _repository . UpdateClaimSet ( _updateClaimSet ) ;
98
98
updateResult . Should ( ) . BeOfType < ClaimSetUpdateResult . Success > ( ) ;
@@ -112,7 +112,7 @@ public async Task Should_get_update_claimSet_from_get_all()
112
112
claimSetFromDb . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
113
113
114
114
var reducedResponse = ( ClaimSetResponseReduced ) claimSetFromDb ;
115
- reducedResponse . Name . Should ( ) . Be ( "Test Update ClaimSet" ) ;
115
+ reducedResponse . Name . Should ( ) . Be ( "Test- Update- ClaimSet" ) ;
116
116
}
117
117
118
118
[ Test ]
@@ -125,7 +125,7 @@ public async Task Should_get_test_claimSet_from_get_by_id()
125
125
claimSetFromDb . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
126
126
127
127
var reducedResponse = ( ClaimSetResponseReduced ) claimSetFromDb ;
128
- reducedResponse . Name . Should ( ) . Be ( "Test Update ClaimSet" ) ;
128
+ reducedResponse . Name . Should ( ) . Be ( "Test- Update- ClaimSet" ) ;
129
129
}
130
130
}
131
131
@@ -139,12 +139,12 @@ public class DeleteTests : ClaimSetTests
139
139
public async Task Setup ( )
140
140
{
141
141
var insertResult1 = await _repository . InsertClaimSet (
142
- new ClaimSetInsertCommand ( ) { Name = "Test One" }
142
+ new ClaimSetInsertCommand ( ) { Name = "Test- One" }
143
143
) ;
144
144
_id1 = ( ( ClaimSetInsertResult . Success ) insertResult1 ) . Id ;
145
145
146
146
var insertResult2 = await _repository . InsertClaimSet (
147
- new ClaimSetInsertCommand ( ) { Name = "Test Two" }
147
+ new ClaimSetInsertCommand ( ) { Name = "Test- Two" }
148
148
) ;
149
149
_id2 = ( ( ClaimSetInsertResult . Success ) insertResult2 ) . Id ;
150
150
@@ -180,7 +180,7 @@ public class ExportTest : ClaimSetTests
180
180
[ SetUp ]
181
181
public async Task Setup ( )
182
182
{
183
- ClaimSetInsertCommand claimSet = new ( ) { Name = "Test Export ClaimSet" } ;
183
+ ClaimSetInsertCommand claimSet = new ( ) { Name = "Test- Export- ClaimSet" } ;
184
184
185
185
var result = await _repository . InsertClaimSet ( claimSet ) ;
186
186
result . Should ( ) . BeOfType < ClaimSetInsertResult . Success > ( ) ;
@@ -195,7 +195,7 @@ public async Task Should_export_claimSet()
195
195
result . Should ( ) . BeOfType < ClaimSetExportResult . Success > ( ) ;
196
196
197
197
var valueFromDb = ( ( ClaimSetExportResult . Success ) result ) . ClaimSetExportResponse ;
198
- valueFromDb . Name . Should ( ) . Be ( "Test Export ClaimSet" ) ;
198
+ valueFromDb . Name . Should ( ) . Be ( "Test- Export- ClaimSet" ) ;
199
199
}
200
200
}
201
201
@@ -233,7 +233,7 @@ public async Task Setup()
233
233
234
234
ClaimSetImportCommand claimSet = new ( )
235
235
{
236
- Name = "Test Import ClaimSet" ,
236
+ Name = "Test- Import- ClaimSet" ,
237
237
ResourceClaims = resourceClaims ,
238
238
} ;
239
239
@@ -262,7 +262,7 @@ public async Task Should_get_test_claimSet_from_get_by_id()
262
262
claimSetFromDb . Should ( ) . BeOfType < ClaimSetResponse > ( ) ;
263
263
264
264
var response = ( ClaimSetResponse ) claimSetFromDb ;
265
- response . Name . Should ( ) . Be ( "Test Import ClaimSet" ) ;
265
+ response . Name . Should ( ) . Be ( "Test- Import- ClaimSet" ) ;
266
266
response . ResourceClaims . Should ( ) . NotBeNull ( ) ;
267
267
}
268
268
@@ -295,7 +295,7 @@ public async Task Should_get_duplicate_failure()
295
295
296
296
ClaimSetImportCommand claimSetDup = new ( )
297
297
{
298
- Name = "Test Import ClaimSet" ,
298
+ Name = "Test- Import- ClaimSet" ,
299
299
ResourceClaims = resourceClaims ,
300
300
} ;
301
301
@@ -313,14 +313,14 @@ public class CopyTest : ClaimSetTests
313
313
[ SetUp ]
314
314
public async Task Setup ( )
315
315
{
316
- ClaimSetInsertCommand claimSet = new ( ) { Name = "Original ClaimSet" } ;
316
+ ClaimSetInsertCommand claimSet = new ( ) { Name = "Original- ClaimSet" } ;
317
317
318
318
var result = await _repository . InsertClaimSet ( claimSet ) ;
319
319
result . Should ( ) . BeOfType < ClaimSetInsertResult . Success > ( ) ;
320
320
_id = ( result as ClaimSetInsertResult . Success ) ! . Id ;
321
321
_id . Should ( ) . BeGreaterThan ( 0 ) ;
322
322
323
- ClaimSetCopyCommand command = new ( ) { OriginalId = _id , Name = "Copy Test ClaimSet" } ;
323
+ ClaimSetCopyCommand command = new ( ) { OriginalId = _id , Name = "Copy- Test- ClaimSet" } ;
324
324
325
325
var copy = await _repository . Copy ( command ) ;
326
326
copy . Should ( ) . BeOfType < ClaimSetCopyResult . Success > ( ) ;
@@ -347,7 +347,7 @@ public async Task Should_get_claimSet_from_get_by_id()
347
347
claimSetFromDb1 . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
348
348
349
349
var reducedResponse1 = ( ClaimSetResponseReduced ) claimSetFromDb1 ;
350
- reducedResponse1 . Name . Should ( ) . Be ( "Original ClaimSet" ) ;
350
+ reducedResponse1 . Name . Should ( ) . Be ( "Original- ClaimSet" ) ;
351
351
352
352
var getByIdResult2 = await _repository . GetClaimSet ( _idCopy , false ) ;
353
353
getByIdResult2 . Should ( ) . BeOfType < ClaimSetGetResult . Success > ( ) ;
@@ -356,7 +356,7 @@ public async Task Should_get_claimSet_from_get_by_id()
356
356
claimSetFromDb2 . Should ( ) . BeOfType < ClaimSetResponseReduced > ( ) ;
357
357
358
358
var reducedResponse2 = ( ClaimSetResponseReduced ) claimSetFromDb2 ;
359
- reducedResponse2 . Name . Should ( ) . Be ( "Copy Test ClaimSet" ) ;
359
+ reducedResponse2 . Name . Should ( ) . Be ( "Copy- Test- ClaimSet" ) ;
360
360
}
361
361
}
362
362
}
0 commit comments