예제 #1
0
 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;
 }
예제 #2
0
        protected override void OnSetUp()
        {
            base.OnSetUp();
            context = SimpleHttpContext.Create("http://localhost");

            securityWebService = new SimpleSecurityWebServiceClient("User");
            amplaUserService   = new AmplaUserService(securityWebService, new AmplaUserStore());
        }
예제 #3
0
 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);
        }
예제 #5
0
 /// <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;
 }