Created
October 18, 2015 21:11
-
-
Save Pondidum/9e693d3ec1eb2a4f84ee to your computer and use it in GitHub Desktop.
Structuremap response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Fact] | |
| public void Can_resolve_action() | |
| { | |
| Action<TokenizerConfigurator> action = config => | |
| { | |
| /* whatever */ | |
| }; | |
| var container = new Container(c => | |
| { | |
| c.Scan(a => | |
| { | |
| a.TheCallingAssembly(); | |
| a.WithDefaultConventions(); | |
| }); | |
| c.For<Action<TokenizerConfigurator>>().Use(action); | |
| }); | |
| container.GetInstance<Test>().ShouldNotBe(null); | |
| } | |
| public class Test | |
| { | |
| public Test(Action<TokenizerConfigurator> config) | |
| { | |
| } | |
| } | |
| public class TokenizerConfigurator | |
| { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment