File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
FluentAssertions.Autofac.Tests Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,21 @@ public void Resolve_As()
3737 containerShould . Resolve < IDisposable > ( ) . As ( typeof ( Dummy ) ) ;
3838 }
3939
40+ [ Fact ]
41+ public void Resolve_Named ( )
42+ {
43+ var containerShould = Configure ( builder =>
44+ builder . RegisterType < Dummy > ( )
45+ . Named < IDisposable > ( "dummy" )
46+ . AsSelf ( )
47+ ) . Should ( ) ;
48+
49+ containerShould . Resolve < Dummy > ( )
50+ . AsSelf ( )
51+ . Named < IDisposable > ( "dummy" )
52+ . Named ( "dummy" , typeof ( IDisposable ) ) ;
53+ }
54+
4055 [ Fact ]
4156 public void Assert_AutoActivation ( )
4257 {
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ public void AutoActivate()
7575 }
7676
7777 /// <summary>
78- /// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />
79- /// .
78+ /// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />.
8079 /// </summary>
8180 /// <param name="type">The type to resolve</param>
8281 /// <param name="types">Optional types to resolve</param>
You can’t perform that action at this time.
0 commit comments