@@ -18,7 +18,7 @@ public class DepositoryResolveTests
18
18
[ Fact ]
19
19
public async void ResolveSingleRegisteredService_ToSingleResolve_ShouldReturnEmptyGuidGenerator ( )
20
20
{
21
- // Init
21
+ // Arrange
22
22
var depository = CreateNewDepository ( ) ;
23
23
var description = new DependencyDescription
24
24
{
@@ -45,7 +45,7 @@ public async void ResolveSingleRegisteredService_ToSingleResolve_ShouldReturnEmp
45
45
[ Fact ]
46
46
public async void ResolveSingleRegisteredService_InScope_ToSingleResolve_ShouldReturnEmptyGuidGenerator ( )
47
47
{
48
- // Init
48
+ // Arrange
49
49
var depository = CreateNewDepository ( ) ;
50
50
var description = new DependencyDescription
51
51
{
@@ -96,7 +96,7 @@ public async void ResolveSingleRegisteredService_InScope_ToSingleResolve_ShouldR
96
96
[ Fact ]
97
97
public async void ResolveMultipleRegisteredService_ToSingleResolve_ShouldReturnRandomGuidGenerator ( )
98
98
{
99
- // Init
99
+ // Arrange
100
100
var depository = CreateNewDepository ( ) ;
101
101
var description = new DependencyDescription
102
102
{
@@ -132,7 +132,7 @@ public async void ResolveMultipleRegisteredService_ToSingleResolve_ShouldReturnR
132
132
[ Fact ]
133
133
public async void ResolveMultipleRegisteredService_ToMultipleResolves_ShouldReturnMultipleGuidGenerators ( )
134
134
{
135
- // Init
135
+ // Arrange
136
136
var depository = CreateNewDepository ( ) ;
137
137
var description = new DependencyDescription
138
138
{
@@ -168,7 +168,7 @@ public async void ResolveMultipleRegisteredService_ToMultipleResolves_ShouldRetu
168
168
[ Fact ]
169
169
public async void ResolveMultipleRegisteredService_ToIEnumerable_ShouldReturnMultipleGuidGenerators ( )
170
170
{
171
- // Init
171
+ // Arrange
172
172
var depository = CreateNewDepository ( ) ;
173
173
var description = new DependencyDescription
174
174
{
@@ -204,7 +204,7 @@ public async void ResolveMultipleRegisteredService_ToIEnumerable_ShouldReturnMul
204
204
[ Fact ]
205
205
public async void ResolveService_ToDefaultImplement_ShouldReturnDefaultImplement ( )
206
206
{
207
- // Init
207
+ // Arrange
208
208
var depository = CreateNewDepository ( ) ;
209
209
var description = new DependencyDescription
210
210
{
@@ -231,7 +231,7 @@ public async void ResolveService_ToDefaultImplement_ShouldReturnDefaultImplement
231
231
[ Fact ]
232
232
public async void ResolveMultipleService_ToDefaultImplements_UsingResolves_ShouldAllReturnDefaultImplement ( )
233
233
{
234
- // Init
234
+ // Arrange
235
235
var depository = CreateNewDepository ( ) ;
236
236
var description = new DependencyDescription
237
237
{
@@ -265,7 +265,7 @@ public async void ResolveMultipleService_ToDefaultImplements_UsingResolves_Shoul
265
265
[ Fact ]
266
266
public async void ResolveMultipleService_ToDefaultImplement_UsingIEnumerable_ShouldAllReturnDefaultImplement ( )
267
267
{
268
- // Init
268
+ // Arrange
269
269
var depository = CreateNewDepository ( ) ;
270
270
var description = new DependencyDescription
271
271
{
@@ -302,7 +302,7 @@ public async void ResolveMultipleService_ToDefaultImplement_UsingIEnumerable_Sho
302
302
[ Fact ]
303
303
public async void ResolveSingleRegisteredService_ToSingleResolve_UsingExtension_ShouldReturnEmptyGuidGenerator ( )
304
304
{
305
- // Init
305
+ // Arrange
306
306
var depository = CreateNewDepository ( ) ;
307
307
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( ) ;
308
308
@@ -317,7 +317,7 @@ public async void ResolveSingleRegisteredService_ToSingleResolve_UsingExtension_
317
317
[ Fact ]
318
318
public async void ResolveMultipleRegisteredService_ToSingleResolve_UsingExtension_ShouldReturnRandomGuidGenerator ( )
319
319
{
320
- // Init
320
+ // Arrange
321
321
var depository = CreateNewDepository ( ) ;
322
322
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( ) ;
323
323
await depository . AddSingletonAsync < IGuidGenerator , RandomGuidGenerator > ( ) ;
@@ -335,7 +335,7 @@ public async void ResolveMultipleRegisteredService_ToSingleResolve_UsingExtensio
335
335
public async void
336
336
ResolveMultipleRegisteredService_ToMultipleResolves_UsingExtension_ShouldReturnMultipleGuidGenerators ( )
337
337
{
338
- // Init
338
+ // Arrange
339
339
var depository = CreateNewDepository ( ) ;
340
340
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( ) ;
341
341
await depository . AddSingletonAsync < IGuidGenerator , RandomGuidGenerator > ( ) ;
@@ -353,7 +353,7 @@ public async void
353
353
[ Fact ]
354
354
public async void ResolveMultipleRegisteredService_ToIEnumerable_UsingExtension_ShouldReturnMultipleGuidGenerators ( )
355
355
{
356
- // Init
356
+ // Arrange
357
357
var depository = CreateNewDepository ( ) ;
358
358
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( ) ;
359
359
await depository . AddSingletonAsync < IGuidGenerator , RandomGuidGenerator > ( ) ;
@@ -371,7 +371,7 @@ public async void ResolveMultipleRegisteredService_ToIEnumerable_UsingExtension_
371
371
[ Fact ]
372
372
public async void ResolveGeneric_ToNormalType_ShouldReturnNormalType ( )
373
373
{
374
- // Init
374
+ // Arrange
375
375
var depository = CreateNewDepository ( ) ;
376
376
await depository . AddSingletonAsync < ITypeGeneric < string > , TypeGeneric < string > > ( ) ;
377
377
@@ -387,7 +387,7 @@ public async void ResolveGeneric_ToNormalType_ShouldReturnNormalType()
387
387
[ Fact ]
388
388
public async void ResolveGeneric_ToNormalType_ShouldReturnGenericType ( )
389
389
{
390
- // Init
390
+ // Arrange
391
391
var depository = CreateNewDepository ( ) ;
392
392
await depository . AddSingletonAsync ( typeof ( ITypeGeneric < > ) , typeof ( TypeGeneric < > ) ) ;
393
393
@@ -403,7 +403,7 @@ public async void ResolveGeneric_ToNormalType_ShouldReturnGenericType()
403
403
[ Fact ]
404
404
public async void ResolveConstructorInject_ShouldBeNormal ( )
405
405
{
406
- // Init
406
+ // Arrange
407
407
var depository = CreateNewDepository ( ) ;
408
408
await depository . AddSingletonAsync ( typeof ( IConstructorInjectService ) , typeof ( ConstructorInjectService ) ) ;
409
409
await depository . AddSingletonAsync ( typeof ( IGuidGenerator ) , typeof ( RandomGuidGenerator ) ) ;
@@ -418,7 +418,7 @@ public async void ResolveConstructorInject_ShouldBeNormal()
418
418
[ Fact ]
419
419
public async void ResolveIEnumerableConstructorInject_ShouldBeNormal ( )
420
420
{
421
- // Init
421
+ // Arrange
422
422
var depository = CreateNewDepository ( ) ;
423
423
await depository . AddSingletonAsync ( typeof ( IConstructorInjectService ) ,
424
424
typeof ( ConstructorIEnumerableInjectService ) ) ;
@@ -435,7 +435,7 @@ await depository.AddSingletonAsync(typeof(IConstructorInjectService),
435
435
[ Fact ]
436
436
public async void ResolveConstructorNotification_ShouldBeNormal ( )
437
437
{
438
- // Init
438
+ // Arrange
439
439
var depository = CreateNewDepository ( option => option . AutoNotifyDependencyChange = true ) ;
440
440
await depository . AddSingletonAsync ( typeof ( IConstructorInjectService ) ,
441
441
typeof ( ConstructorInjectNotifiableService ) ) ;
@@ -456,7 +456,7 @@ await depository.AddSingletonAsync(typeof(INotifyDependencyChanged<IGuidGenerato
456
456
[ Fact ]
457
457
public async void ResolveIEnumerableConstructorNotification_ShouldBeNormal ( )
458
458
{
459
- // Init
459
+ // Arrange
460
460
var depository = CreateNewDepository ( option => option . AutoNotifyDependencyChange = true ) ;
461
461
await depository . AddSingletonAsync ( typeof ( IConstructorInjectService ) ,
462
462
typeof ( ConstructorInjectNotifiableService ) ) ;
@@ -478,7 +478,7 @@ await depository.AddSingletonAsync(typeof(INotifyDependencyChanged<IGuidGenerato
478
478
[ Fact ]
479
479
public async void ResolveService_ToDefaultImplement_UsingExtension_ShouldReturnDefaultImplement ( )
480
480
{
481
- // Init
481
+ // Arrange
482
482
var depository = CreateNewDepository ( ) ;
483
483
var emptyGuidGenerator = new EmptyGuidGenerator ( ) ;
484
484
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( emptyGuidGenerator ) ;
@@ -493,7 +493,7 @@ public async void ResolveService_ToDefaultImplement_UsingExtension_ShouldReturnD
493
493
[ Fact ]
494
494
public async void ResolveMultipleService_ToDefaultImplement_UsingExtension_ShouldAllReturnDefaultImplement ( )
495
495
{
496
- // Init
496
+ // Arrange
497
497
var depository = CreateNewDepository ( ) ;
498
498
var emptyGuidGenerator = new EmptyGuidGenerator ( ) ;
499
499
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( emptyGuidGenerator ) ;
@@ -509,7 +509,7 @@ public async void ResolveMultipleService_ToDefaultImplement_UsingExtension_Shoul
509
509
[ Fact ]
510
510
public async void ResolveMultipleService_ToDefaultImplement_UsingExtension_IEnumerable_ShouldAllReturnDefaultImplement ( )
511
511
{
512
- // Init
512
+ // Arrange
513
513
var depository = CreateNewDepository ( ) ;
514
514
var emptyGuidGenerator = new EmptyGuidGenerator ( ) ;
515
515
await depository . AddSingletonAsync < IGuidGenerator , EmptyGuidGenerator > ( emptyGuidGenerator ) ;
0 commit comments