/// <summary>Initializes and instance of the type. </summary>
        /// <param name="registerService">A RegistrationService facilitating registration of a device.</param>
        public RegisterationViewModel(IRegistrerDeviceService registerService)
        {
            if (null == registerService)
            {
                Debug.WriteLine($"Registration service was null in RegisterationViewModel constructor.");
                return;
            }

            _registerService = registerService;
        }
Esempio n. 2
0
        // KEEP becasue hope is we can move our register work and get to use only this constructor
        //public LoginViewModel(IESigAuthService authService)
        //{
        //    _authService = authService;
        //}

        // TODO: Get this class to the point where the constructor does NOT need registerService.
        //  all the register work should happen in the RegisterViewModel, so we should be able to
        // slowly move it out of this class.
        public LoginViewModel(IESigAuthService authService, IRegistrerDeviceService registerService)
        {
            // TODO, get user and pass in User type to the auth Service for authenticaiton.
            _authService     = authService;
            _registerService = registerService;
        }