File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/FluentAssertions.Ioc.Ninject.SampleTests Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,26 @@ public void Providers_can_be_resolved_with_at_least_one_instance()
34
34
kernel . Should ( ) . Resolve ( interfaces ) . WithAtLeastOneInstance ( ) ;
35
35
}
36
36
37
+ [ Test ]
38
+ public void SampleService_can_be_resolved_with_a_single_instance ( )
39
+ {
40
+ // Arrange
41
+ var kernel = GetKernel ( ) ;
42
+
43
+ // Assert
44
+ kernel . Should ( ) . Resolve < ISampleService > ( ) . WithSingleInstance ( ) ;
45
+ }
46
+
47
+ [ Test ]
48
+ public void Provider_can_be_resolved_with_at_least_one_instance ( )
49
+ {
50
+ // Arrange
51
+ var kernel = GetKernel ( ) ;
52
+
53
+ // Assert
54
+ kernel . Should ( ) . Resolve < ISomeProvider > ( ) . WithAtLeastOneInstance ( ) ;
55
+ }
56
+
37
57
[ Test ]
38
58
public void SampleService_resolves_to_expected_implementation ( )
39
59
{
You can’t perform that action at this time.
0 commit comments