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; }
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; }
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); }
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(); }
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); }
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; }
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() }; }
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); }
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; }
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); }
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; }
public AccountController(ISignInService signInService, ISignUpService signUpService) { _signInService = signInService; _signUpService = signUpService; }
public SignUpController(ISignUpService signUpService) { _signUpService = signUpService; }
public SignUpController(IResolver resolver, ISignUpService signUpService) { _signUpService = signUpService; }
public SignController(IdentityService identityService, ISignUpService signUpService) { _identityService = identityService; _signUpService = signUpService; }
public void Setup() { _signInService = new SignInServiceImpl(_drawingDal); _signUpService = new SignUpServiceImpl(_drawingDal); }
public UserController(ISignUpService signUpService, IUserAdoDataProvider userDataProvider) { _signUpService = signUpService; _userDataProvider = userDataProvider; }
public SignUpController(IIndex <SignUpServiceType, ISignUpService> signUpServices) { _asyncSignUpService = signUpServices[SignUpServiceType.Async]; _syncSignUpService = signUpServices[SignUpServiceType.Sync]; }
public SignupService(ISignUpService signUpService) { _signUpService = signUpService; }
public InviteMembersController(IinviteMembersService service, ISignUpService context) { _service = service; _context = context; }
public SignUpController(ISignUpService signUp) { _signUpService = signUp; _validator = new SignUpValidator(); }
public void TearDown() { _signUpService = null; _signInService = null; }
public DispatcherLocationViewModel(ISignUpService signUpService, IGarageService garageService) : base(signUpService, garageService) { }
public AccountController() { _signupService = new SignUpService(); _confirmService = new ConfirmService(); _loginService = new LoginService(); }