File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
src/FluentAssertions.Ioc.Ninject.SampleTests Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Text ;
5- using System . Threading . Tasks ;
6- using FluentAssertions . Ioc . Ninject . Sample ;
1+ using FluentAssertions . Ioc . Ninject . Sample ;
2+ using FluentAssertions . Ioc . Samples . Core ;
73using FluentAssertions . Ioc . Samples . Interfaces ;
84using Ninject ;
95using Ninject . Modules ;
@@ -37,6 +33,16 @@ public void Providers_can_be_resolved_with_at_least_one_instance()
3733 // Assert
3834 kernel . Should ( ) . Resolve ( interfaces ) . WithAtLeastOneInstance ( ) ;
3935 }
36+
37+ [ Test ]
38+ public void SampleService_resolves_to_expected_implementation ( )
39+ {
40+ // Arrange
41+ var kernel = GetKernel ( ) ;
42+
43+ // Assert
44+ kernel . Should ( ) . Resolve < ISampleService > ( ) . To < SampleService > ( ) ;
45+ }
4046
4147 private IKernel GetKernel ( )
4248 {
You can’t perform that action at this time.
0 commit comments