public LoginAmplaSessionUsingQueryString(IHttpRequestWrapper requestWrapper, IHttpResponseWrapper responseWrapper, IAmplaUserService amplaUserService, IFormsAuthenticationService formsAuthenticationService, IAmplaSessionStorage amplaSessionStorage) { this.requestWrapper = requestWrapper; this.responseWrapper = responseWrapper; this.amplaUserService = amplaUserService; this.formsAuthenticationService = formsAuthenticationService; this.amplaSessionStorage = amplaSessionStorage; }
protected override void OnSetUp() { base.OnSetUp(); context = SimpleHttpContext.Create("http://localhost"); securityWebService = new SimpleSecurityWebServiceClient("User"); amplaUserService = new AmplaUserService(securityWebService, new AmplaUserStore()); }
public RenewSessionAdapter(IRepository <TModel> repository, IAmplaUserService userService, IFormsAuthenticationService formsAuthenticationService, IAmplaSessionStorage sessionStorage) : base(repository) { this.userService = userService; this.formsAuthenticationService = formsAuthenticationService; this.sessionStorage = sessionStorage; }
protected override void OnSetUp() { base.OnSetUp(); webServiceClient = new SimpleSecurityWebServiceClient("User"); amplaUserStore = new AmplaUserStore(); amplaUserService = new AmplaUserService(webServiceClient, amplaUserStore); context = SimpleHttpContext.Create("http://localhost"); controller = new AccountController(amplaUserService, FormsAuthenticationService, AmplaSessionStorage); }
/// <summary> /// Initializes a new instance of the <see cref="AccountController" /> class. /// </summary> /// <param name="amplaUserService">The ampla user service.</param> /// <param name="formsAuthenticationService">The forms authentication service.</param> /// <param name="amplaSessionStorage">The ampla session storage.</param> public AccountController(IAmplaUserService amplaUserService, IFormsAuthenticationService formsAuthenticationService, IAmplaSessionStorage amplaSessionStorage) { this.amplaUserService = amplaUserService; this.formsAuthenticationService = formsAuthenticationService; this.amplaSessionStorage = amplaSessionStorage; }