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);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AmplaUserService" /> class.
 /// </summary>
 /// <param name="securityWebService">The security web service.</param>
 /// <param name="amplaUserStore">The ampla user store.</param>
 public AmplaUserService(ISecurityWebServiceClient securityWebService, IAmplaUserStore amplaUserStore)
 {
     this.securityWebService = securityWebService;
     this.amplaUserStore     = amplaUserStore;
 }