コード例 #1
0
        public LocationViewModel(ISignUpService signUpService, IGarageService garageService)
        {
            SignUpService = signUpService;
            GarageService = garageService;

            RegisterCommand = new MvxAsyncCommand(Register);
        }
コード例 #2
0
 public LoginController(
     ILoginService loginService,
     ISignUpService signUpService)
 {
     _loginService  = loginService;
     _signUpService = signUpService;
 }
コード例 #3
0
 public ReviewController(ILogger <EmployerController> logger, IMapper mapper, ISignUpService signUpService, ISignInService signInService)
 {
     _logger        = logger;
     _mapper        = mapper;
     _signUpService = signUpService;
     _signInService = signInService;
 }
コード例 #4
0
ファイル: SignUpServiceTest.cs プロジェクト: zainzia/OCAS
        public void SetUp()
        {
            //Mock => Localizer
            var stringLocalizerMock = new Mock <IStringLocalizer <ISignUpService> >();

            stringLocalizerMock.Setup(p => p[It.IsAny <string>()]).Returns(new LocalizedString("Test", "Test String"));

            //Mock => EmployeeService
            _employeeService = new Mock <IEmployeeService>();

            //Mock => EventsService
            _eventsService = new Mock <IEventsService>();

            //Get Services Collection
            var services = new ServiceCollection();

            //Add the neccessary services to instatiate and test the SignUpService
            services.AddSingleton(stringLocalizerMock.Object);
            services.AddSingleton(_employeeService.Object);
            services.AddSingleton(_eventsService.Object);

            //Add SignUpService
            services.AddTransient <ISignUpService, SignUpService>();

            //Build the Service Provider
            var serviceProvider = services.BuildServiceProvider();

            //Set the _signUpService
            _signUpService = serviceProvider.GetRequiredService <ISignUpService>();
        }
コード例 #5
0
 public InviteMembersService(IInviteRepository repository, IConfiguration config, ISignUpService signup, IProjectmemberservice Projectmembers)
 {
     _repository     = repository;
     _config         = config;
     _signup         = signup;
     _Projectmembers = Projectmembers;
 }
コード例 #6
0
 public SignUpHandler(ISignUpProvider provider
                      , ISignUpService service
                      , ITokensService tokensService)
 {
     _provider      = provider;
     _service       = service;
     _tokensService = tokensService;
 }
コード例 #7
0
        public void SetUp()
        {
            var fakeBookwormDbContext = A.Fake <BookwormDbContext>();

            _userRepository = A.Fake <Repository <User> >();
            _mockUserData   = new MockUsers();
            _signUpService  = new SignUpService(_userRepository);
        }
コード例 #8
0
        public void SetUp()
        {
            _fakeSignUpService = A.Fake <ISignUpService>();
            _fakeLoginService  = A.Fake <ILoginService>();
            var _fakeBookwormDbContext = A.Fake <BookwormDbContext>();

            _signUpController = new SignUpController(_fakeSignUpService);
            _fakeRepository   = new Repository <User>(_fakeBookwormDbContext);
            _validator        = A.Fake <SignUpValidator>();
        }
コード例 #9
0
 // Constructor:
 public AccountController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ISignUpService signUpService)
 {
     _signInManager   = signInManager;
     _userManager     = userManager;
     _signUpService   = signUpService;
     _cartService     = new CartService();
     _reviewService   = new ReviewService();
     _bookService     = new BookService();
     _orderService    = new OrderService();
     _wishlistService = new WishlistService();
 }
コード例 #10
0
        public void FirstSetup()
        {
            _configuration = new ConfigurationBuilder()
                             .AddJsonFile("test.appsettings.json")
                             .Build();

            var strConn = _configuration.GetConnectionString("mainDb");

            _testUtilitiesImpl = new TestUtilitiesImpl(strConn);
            _drawingDal        = new DrawingDalImpl(_configuration);
            _signUpService     = new SignUpServiceImpl(_drawingDal);
        }
コード例 #11
0
 public HomeController(ICommunitiesService communitiesService, ISignUpService SignUpService,
                       IHostingEnvironment env, IEmailVerificationService emailVerificationService,
                       ILoginService loginService,
                       IForgotPasswordService forgotPasswordService
                       )
 {
     _communitiesService       = communitiesService;
     _SignUpService            = SignUpService;
     _emailVerificationService = emailVerificationService;
     _env                   = env;
     _loginService          = loginService;
     _forgotPasswordService = forgotPasswordService;
 }
コード例 #12
0
 public TokenProviderMiddleware(RequestDelegate next, IOptions <TokenProviderOptions> options,
                                ISignUpRepository repository)
 {
     _next         = next;
     _options      = options.Value;
     _loginService = new SignUpService(repository);
     _handlers     = new ILoginHandler[]
     {
         new AllegroLoginHandler(),
         new FacebookLoginHandler(),
         new GoogleLoginHandler()
     };
 }
コード例 #13
0
        public void FirstSetup()
        {
            _configuration = new ConfigurationBuilder()
                             .AddJsonFile("test.appsettings.json")
                             .Build();

            var strConn = _configuration.GetConnectionString("mainDb");

            _testUtilitiesImpl = new TestUtilitiesImpl(strConn);
            _drawingDal        = new DrawingDalImpl(_configuration);
            _documentService   = new DocumentServiceImpl(_drawingDal);
            _signUpService     = new SignUpServiceImpl(_drawingDal);
            _createdUsers      = _testUtilitiesImpl.CreateUserDummyData(_signUpService, CreatedPlayersAmount);
        }
コード例 #14
0
 public AccountController(ISignUpService signUpService,
                          IEmailService emailService,
                          IApplicationContext applicationContext,
                          IRepository <Login> loginRepository,
                          IRepository <PersonDocument> personDocumentRepository,
                          IPersonService personService,
                          IRepository <Person> personRepository)
 {
     _signUpService            = signUpService;
     _emailService             = emailService;
     _appContext               = applicationContext;
     _loginRepository          = loginRepository;
     _personDocumentRepository = personDocumentRepository;
     _personService            = personService;
     _personRepository         = personRepository;
 }
コード例 #15
0
        public List <string> CreateUserDummyData(ISignUpService signUpService, int dataCount)
        {
            var retval = new List <string>();

            for (int i = 0; i < dataCount; i++)
            {
                var userResponse =
                    signUpService.SignUp(new SignUpRequest {
                    Login = new LoginDto {
                        Email = UserPrefix + i, Username = "******" + i
                    }
                });
                retval.Add(((SignUpResponseOk)userResponse).SignUpRequest.Login.Email);
            }

            return(retval);
        }
コード例 #16
0
        public CreateProfileViewModel(
            INavigationService navigationService,
            IOnBoardingRoute onBoardingRoute,
            IUserLogInRoute userLogInRoute,
            IErrorHandler errorHandler,
            ISignUpService signUpService)
        {
            _navigationService = navigationService;
            _onBoardingRoute   = onBoardingRoute;
            _userLogInRoute    = userLogInRoute;
            _errorHandler      = errorHandler;
            _signUpService     = signUpService;

            var canExecuteCreateAccount = this.WhenAnyValue(
                vm => vm.IsBusy,
                (x) => !x);

            CreateAccountCommand = ReactiveCommand.CreateFromTask(HandleCreateAccountAsync, canExecuteCreateAccount);
            LogInCommand         = ReactiveCommand.CreateFromTask(HandleLogInAsync);
        }
コード例 #17
0
 public LoginController(ISignUpService context)
 {
     _context = context;
 }
コード例 #18
0
 public AccountController(ISignInService signInService, ISignUpService signUpService)
 {
     _signInService = signInService;
     _signUpService = signUpService;
 }
コード例 #19
0
 public SignUpController(ISignUpService signUpService)
 {
     _signUpService = signUpService;
 }
コード例 #20
0
 public SignUpController(IResolver resolver, ISignUpService signUpService)
 {
     _signUpService = signUpService;
 }
コード例 #21
0
 public SignController(IdentityService identityService, ISignUpService signUpService)
 {
     _identityService = identityService;
     _signUpService   = signUpService;
 }
コード例 #22
0
 public void Setup()
 {
     _signInService = new SignInServiceImpl(_drawingDal);
     _signUpService = new SignUpServiceImpl(_drawingDal);
 }
コード例 #23
0
 public UserController(ISignUpService signUpService, IUserAdoDataProvider userDataProvider)
 {
     _signUpService    = signUpService;
     _userDataProvider = userDataProvider;
 }
コード例 #24
0
 public SignUpController(IIndex <SignUpServiceType, ISignUpService> signUpServices)
 {
     _asyncSignUpService = signUpServices[SignUpServiceType.Async];
     _syncSignUpService  = signUpServices[SignUpServiceType.Sync];
 }
コード例 #25
0
 public SignupService(ISignUpService signUpService)
 {
     _signUpService = signUpService;
 }
コード例 #26
0
 public InviteMembersController(IinviteMembersService service, ISignUpService context)
 {
     _service = service;
     _context = context;
 }
コード例 #27
0
 public SignUpController(ISignUpService signUp)
 {
     _signUpService = signUp;
     _validator     = new SignUpValidator();
 }
コード例 #28
0
 public void TearDown()
 {
     _signUpService = null;
     _signInService = null;
 }
コード例 #29
0
 public DispatcherLocationViewModel(ISignUpService signUpService, IGarageService garageService)
     : base(signUpService, garageService)
 {
 }
コード例 #30
0
 public AccountController()
 {
     _signupService  = new SignUpService();
     _confirmService = new ConfirmService();
     _loginService   = new LoginService();
 }