示例#1
0
        public UserLogicInitial()
        {
            _authService  = new GoogleOAuthService();
            _emailService = new OutlookEmailService();
            // Or _emailService = new GoogleEmailService();

            // or Google;
        }
 public UserLogicConstructorInjection(IEmailService emailService)
 {
     _authService  = new GoogleOAuthService();
     _emailService = emailService;
 }
 public UserLogicMethodInjection()
 {
     _authService = new GoogleOAuthService();
 }
 public UserLogicSetterInjection()
 {
     _authService = new GoogleOAuthService();
 }
 public OAuthController(GoogleOAuthService gOAuthService, IAuthenticationService authenticationService, MicrosoftOAuthService msOAuthService)
 {
     this.gOAuthService         = gOAuthService;
     this.authenticationService = authenticationService;
     this.msOAuthService        = msOAuthService;
 }
 public GoogleSignInPage()
 {
     this.googleOAuthService = new GoogleOAuthService();
     this.InitializeComponent();
     this.InitializeWebView();
 }
示例#7
0
 public UserLogicBadExample1()
 {
     _authService  = new GoogleOAuthService();
     _emailService = new GoogleEmailService();
 }
示例#8
0
        public void Register(string emailAddress, string password)
        {
            GoogleOAuthService authResult = _authService.RegisterUser(emailAddress, password);

            _emailService.SendEmail(emailAddress, authResult.ConfirmationMessage);
        }