Beispiel #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();
 }
Beispiel #7
0
 public UserLogicBadExample1()
 {
     _authService  = new GoogleOAuthService();
     _emailService = new GoogleEmailService();
 }
Beispiel #8
0
        public void Register(string emailAddress, string password)
        {
            GoogleOAuthService authResult = _authService.RegisterUser(emailAddress, password);

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