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