private void InitializeFakeObjects()
 {
     _generateAndSendSmsCodeOperationStub = new Mock <IGenerateAndSendSmsCodeOperation>();
     _userActionsStub            = new Mock <IUserActions>();
     _smsAuthenticationOptions   = new SmsAuthenticationOptions();
     _smsAuthenticationOperation = new SmsAuthenticationOperation(_generateAndSendSmsCodeOperationStub.Object, _userActionsStub.Object, _smsAuthenticationOptions);
 }
 public AuthenticateController(
     IAuthenticateActions authenticateActions,
     IProfileActions profileActions,
     IDataProtectionProvider dataProtectionProvider,
     IEncoder encoder,
     ITranslationManager translationManager,
     IOpenIdEventSource simpleIdentityServerEventSource,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IEventPublisher eventPublisher,
     IAuthenticationService authenticationService,
     IAuthenticationSchemeProvider authenticationSchemeProvider,
     IUserActions userActions,
     IPayloadSerializer payloadSerializer,
     IConfigurationService configurationService,
     IAuthenticateHelper authenticateHelper,
     ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler,
     ISmsAuthenticationOperation smsAuthenticationOperation,
     IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation,
     SmsAuthenticationOptions basicAuthenticateOptions) : base(authenticateActions, profileActions, dataProtectionProvider, encoder,
                                                               translationManager, simpleIdentityServerEventSource, urlHelperFactory, actionContextAccessor, eventPublisher,
                                                               authenticationService, authenticationSchemeProvider, userActions, payloadSerializer, configurationService,
                                                               authenticateHelper, twoFactorAuthenticationHandler, basicAuthenticateOptions)
 {
     _smsAuthenticationOperation      = smsAuthenticationOperation;
     _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation;
 }
 private void InitializeFakeObjects()
 {
     _generateAndSendSmsCodeOperationStub = new Mock <IGenerateAndSendSmsCodeOperation>();
     _resourceOwnerRepositoryStub         = new Mock <IResourceOwnerRepository>();
     _subjectBuilderStub         = new Mock <ISubjectBuilder>();
     _userActionsStub            = new Mock <IUserActions>();
     _smsAuthenticationOptions   = new SmsAuthenticationOptions();
     _smsAuthenticationOperation = new SmsAuthenticationOperation(
         _generateAndSendSmsCodeOperationStub.Object,
         _resourceOwnerRepositoryStub.Object, _userActionsStub.Object, _subjectBuilderStub.Object, _smsAuthenticationOptions);
 }
 public CodeController(ISmsAuthenticationOperation smsAuthenticationOperation)
 {
     _smsAuthenticationOperation = smsAuthenticationOperation;
 }