public LocationViewModel(ISignUpService signUpService, IGarageService garageService)
        {
            SignUpService = signUpService;
            GarageService = garageService;

            RegisterCommand = new MvxAsyncCommand(Register);
        }
 public LoginController(
     ILoginService loginService,
     ISignUpService signUpService)
 {
     _loginService  = loginService;
     _signUpService = signUpService;
 }
 public ReviewController(ILogger <EmployerController> logger, IMapper mapper, ISignUpService signUpService, ISignInService signInService)
 {
     _logger        = logger;
     _mapper        = mapper;
     _signUpService = signUpService;
     _signInService = signInService;
 }
示例#4
0
        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>();
        }
 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;
 }
        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>();
        }
 // 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);
        }
 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;
 }
 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;
 }
 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)
 {
 }
 public AccountController()
 {
     _signupService  = new SignUpService();
     _confirmService = new ConfirmService();
     _loginService   = new LoginService();
 }