Created
March 19, 2018 12:31
-
-
Save lukos/4636a6c81b0f5442fb593e58a3f45622 to your computer and use it in GitHub Desktop.
Additional services mocks
This file contains 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
servicesMock.Setup(sp => sp.GetService(typeof(IUrlHelperFactory))).Returns(new UrlHelperFactory()); | |
servicesMock.Setup(sp => sp.GetService(typeof(ITempDataDictionaryFactory))).Returns(new TempDataDictionaryFactory(new SessionStateTempDataProvider())); | |
context.HttpContext.RequestServices = servicesMock.Object; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment