public LogInController(ILogger logger, ILogInService login, IErrorHandler errorHandler, IRegistrationService registration)
 {
     _logger       = logger;
     _login        = login;
     _errorHandler = errorHandler;
     _registration = registration;
 }
Ejemplo n.º 2
0
        public RntAppUserController(UserManager <RntAppUser> userManager,
                                    SignInManager <RntAppUser> signInManager,
                                    IOptions <SecureSettings> appSettings)
        {
            _userManager   = userManager;
            _signInManager = signInManager;
            _appSettings   = appSettings.Value;

            DependencyInjector.UpdateInterfaceModeDependencies(true);
            LogInService = DependencyInjector.Resolve <ILogInService>();
        }
Ejemplo n.º 3
0
    public LogInViewModel(
        ILogInService logInService,
        IDialogService dialogService,
        IKeyboardService keyboardService,
        IHelpYouService helpYouService)
    {
        this.logInService    = logInService;
        this.dialogService   = dialogService;
        this.keyboardService = keyboardService;
        this.helpYouService  = helpYouService;

        CallUsCommand       = new AsyncCommand(() => CallUsCommandd());
        DoLoginCommand      = new AsyncCommand(() => DoLoginCommandAsync());
        GoToRegisterCommand = new AsyncCommand(() => GoToRegisterCommandAsync());
    }
Ejemplo n.º 4
0
        public LogInServiceMockedDummy()
        {
            using (var mock = AutoMock.GetStrict())
            {
                mock.Mock <ILogInService>().Setup(m => m.SaveDataFromView(It.IsAny <string>(), It.IsAny <string>()))
                .Callback((string name, string pas) => { name = null; pas = null; });


                mock.Mock <ILogInService>().Setup(m => m.GetPosition())
                .Returns("Admin");


                mock.Mock <ILogInService>().Setup(m => m.GetIDLoggedUser())
                .Returns(1);


                mock.Mock <ILogInService>().Setup(m => m.CorrectLogin())
                .Returns(() =>
                {
                    if (correct)
                    {
                        return(true);
                    }
                    else
                    {
                        throw new Exception();
                    }
                });

                mock.Mock <ILogInService>().Setup(m => m.CreateNewPass(It.IsAny <string>(), It.IsAny <string>()))
                .Callback(() =>
                {
                    if (correct)
                    {
                        this.pass = "******";
                    }
                    else
                    {
                        throw new Exception();
                    }
                });



                _ilogService = mock.Create <ILogInService>();
            }
        }
Ejemplo n.º 5
0
 public LogInController()
 {
     this.logInService = new LogInService();
 }
Ejemplo n.º 6
0
 public LogInController(ILogInService logInService)
 {
     this.logInService = logInService;
 }
Ejemplo n.º 7
0
 public LoginModel(ILogger <LoginModel> logger, ILogInService logInService)
 {
     _logger       = logger;
     _logInService = logInService;
 }
Ejemplo n.º 8
0
 public AuthenticationController(ILogInService aService)
 {
     loginService = aService;
 }
 public LogInController()
 {
     logInService   = serviceHandler.GetLogInService();
     loggingService = serviceHandler.GetLoggingService();
     userService    = serviceHandler.GetUserManagementService();
 }
Ejemplo n.º 10
0
 public LoginController(ILogInService loginSvc)
 {
     this.loginSvc = loginSvc;
 }
Ejemplo n.º 11
0
 public LogInViewModel()
 {
     _logInService = new LogInService();
 }
Ejemplo n.º 12
0
 //For tests
 public LogInPresenter(ILogInService _loginServ, bool stay)
 {
     _logInService = _loginServ;
     _login        = new mov4eLogin();
     _login.Stay   = stay;
 }
Ejemplo n.º 13
0
 public LogInPresenter(ILogIn loginView)
 {
     _login        = loginView;
     _logInService = new LogInService();
 }
Ejemplo n.º 14
0
 public LogInController(IConfiguration config, ILogInService service)
 {
     this.config       = config;
     this.logInService = service;
 }
Ejemplo n.º 15
0
 public AuthorisationController(ILogInService logInService)
 {
     _logInService = logInService;
 }