Created
February 20, 2017 06:45
-
-
Save gasparnagy/55ec556004a41dbf221838bf43f56391 to your computer and use it in GitHub Desktop.
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
public class ControllerContext | |
{ | |
public CalculatorController Controller { get; private set; } | |
public ControllerContext() | |
{ | |
var containerBuilder = Dependencies.CreateContainerBuilder(); // invoke runtime dependency configuration | |
//TODO: apply test-specific customizations if needed | |
var container = containerBuilder.Build(); // create container | |
Controller = container.Resolve<CalculatorController>(); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment