public QuoteSheetModule(IConsoleRepository consoleRepository, ISubmissionModule submissionModule, IQuoteSheetData quotesheetData, ICurrentHttpContext httpContext) { this.ConsoleRepository = consoleRepository; this.SubmissionModule = submissionModule; this.QuoteSheetData = quotesheetData; this.HttpContext = httpContext; }
public TemplatesModule(IConsoleRepository consoleRepository, ILogHandler logHandler, ICurrentHttpContext currentHttpContext, IWebSiteModuleManager webSiteModuleManager) { this.LogHandler = logHandler; this.ConsoleRepository = consoleRepository; this.CurrentHttpContext = currentHttpContext; this.WebSiteModuleManager = webSiteModuleManager; }
public PolicyData(IConsoleRepository repository, ICurrentHttpContext currentHttpContext, ILogHandler logHandler) { this._currentHttpContext = currentHttpContext; this._repository = repository; this._logHandler = logHandler; }
public WebSiteModuleManager(IConsoleRepository repository, ICurrentHttpContext currentHttpContext) { _repository = repository; _currentHttpContext = currentHttpContext; }
public JwtAuthHandler(ICurrentHttpContext currentHttpContext, IAuthService authService) { _currentHttpContext = currentHttpContext; _authService = authService; }
public static void GetMockCurrentHttpContext() { var mockCurrentHttpContext = new Mock<CurrentHttpContext>(); var user = @"talbotdev\MurrayE"; user = user.Replace(@"\\", @"\"); mockCurrentHttpContext.Setup(h => h.CurrentUser).Returns(new GenericPrincipal(new GenericIdentity(user), null)); mockCurrentHttpContext.Setup(h => h.Context).Returns(MvcMockHelpers.FakeHttpContextWithSession()); _currentHttpContext = mockCurrentHttpContext.Object; }