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()
3434 kernel . Should ( ) . Resolve ( interfaces ) . WithAtLeastOneInstance ( ) ;
3535 }
3636
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+
3757 [ Test ]
3858 public void SampleService_resolves_to_expected_implementation ( )
3959 {
You can’t perform that action at this time.
0 commit comments