Example #1
0
 public AccountController(ISignupService signupService, ILoginService loginService, IMapper mapper,
                          IFinalJobPreperationService finalJobPreperationService)
 {
     this.signupService = signupService;
     this.loginService  = loginService;
     this.mapper        = mapper;
     this.finalJobPreperationService = finalJobPreperationService;
 }
Example #2
0
 public AuthController(IAntiforgery antiForgeryService, ILocalAuthenticationService authService, CultureService cultureService, IOptions <Toucan.Server.Config> serverConfig, ISignupService signupService, ITokenProviderService <Token> tokenService, IDomainContextResolver resolver, ILocalizationService localization) : base(resolver, localization)
 {
     this.antiForgeryService = antiForgeryService;
     this.authService        = authService;
     this.cultureService     = cultureService;
     this.serverConfig       = serverConfig.Value;
     this.signupService      = signupService;
     this.tokenService       = tokenService;
 }
Example #3
0
 public AuthController(IAntiforgery antiForgeryService, ILocalAuthenticationService authService, IOptions <Toucan.Server.Config> serverConfig, ISignupService signupService, IVerificationProvider verificationProvider, ITokenProviderService <Token> tokenService)
 {
     this.antiForgeryService   = antiForgeryService;
     this.authService          = authService;
     this.serverConfig         = serverConfig.Value;
     this.signupService        = signupService;
     this.tokenService         = tokenService;
     this.verificationProvider = verificationProvider;
 }
Example #4
0
        public SignupPageViewModel(INavigationService navigationService, ISignupService signupService, IPageDialogService pageDialogService) : base(navigationService)
        {
            _signupService     = signupService;
            _pageDialogService = pageDialogService;

            Title = "サインアップ";

            Email    = _signupService.Email;
            Name     = _signupService.Name;
            Password = _signupService.Password;

            _signupService.Image.Value = "user.png";

            _signupService.SignupCompletedNotifier
            .ObserveOn(SynchronizationContext.Current)
            .SelectMany(_ =>
            {
                var navigation = NavigationFactory.Create <MainPageViewModel>()
                                 .Add(NavigationNameProvider.DefaultNavigationPageName)
                                 .Add <HomePageViewModel>();
                return(NavigateAsync(navigation, noHistory: true));
            })
            .Subscribe()
            .AddTo(_disposables);

            _signupService.SignupErrorNotifier
            .ObserveOn(SynchronizationContext.Current)
            .Subscribe(_ => _pageDialogService.DisplayAlertAsync("エラー", "サインアップに失敗しました", "OK"))
            .AddTo(_disposables);

            _signupService.IsSigningUp
            .Skip(1)
            .Where(b => b)
            .ObserveOn(SynchronizationContext.Current)
            .SelectMany(_ => NavigateAsync <LoadingPageViewModel>())
            .Subscribe()
            .AddTo(_disposables);

            _signupService.IsSigningUp
            .Skip(1)
            .Where(b => !b)
            .ObserveOn(SynchronizationContext.Current)
            .SelectMany(_ => GoBackAsync())
            .Subscribe()
            .AddTo(_disposables);

            SignupCommand = _signupService.CanSignup
                            .ToAsyncReactiveCommand()
                            .AddTo(_disposables);

            SignupCommand.Subscribe(async() => await _signupService.Signup());
        }
Example #5
0
 public SignupController(
     IPayMerchantClient payMerchantClient,
     IPayAuthClient payAuthClient,
     IPayInvoiceClient payInvoiceClient,
     ISignupService signupService,
     IEmailService emailService,
     ILogFactory logFactory)
 {
     _payMerchantClient = payMerchantClient;
     _payAuthClient     = payAuthClient;
     _payInvoiceClient  = payInvoiceClient;
     _signupService     = signupService;
     _emailService      = emailService;
     _log = logFactory.CreateLog(this);
 }
Example #6
0
 public AccountController(ILoginService loginService,
                          ISignupService signupService)
 {
     _loginService  = loginService;
     _signupService = signupService;
 }
Example #7
0
 public SignupsController(SCCDataContext context, ISignupService service)
 {
     _context = context;
     _service = service;
 }
Example #8
0
 public SignupViewModel(ISignupService service, IUserDialogs dialog)
 {
     _udialog = dialog;
     _service = service;
 }
 public TripsController(ITripService tripService, IMemberService memberService, ISignupService signupService)
 {
     _tripService   = tripService;
     _memberService = memberService;
     _signupService = signupService;
 }
Example #10
0
 public SignupViewModel(ISignupService signupService, IPickPhotoService pickPhotoService)
 {
     _signupService    = signupService;
     _pickPhotoService = pickPhotoService;
 }
Example #11
0
 public SignupController(ISignupService signupService)
 {
     _signupService = signupService;
 }
Example #12
0
 public SignupController(ISignupService signupCheckService, IPhotoService photoService)
 {
     _signupCheckService = signupCheckService;
     _photoService       = photoService;
 }
 public void TestInitialize()
 {
     _signupService = new SignupService(true);
 }
Example #14
0
 public SignupController(ISignupService signupService, ISignupProducer signupProducer, ILogger <SignupController> logger)
 {
     _signupService  = signupService;
     _signupProducer = signupProducer;
     _logger         = logger;
 }
Example #15
0
 public ParkingBookingConsumer(ISignupService signupService)
 {
     _signupService = signupService;
 }