private void InitializeFakeObjects() { _displayConsentActionFake = new Mock <IDisplayConsentAction>(); _confirmConsentActionFake = new Mock <IConfirmConsentAction>(); _consentActions = new ConsentActions(_displayConsentActionFake.Object, _confirmConsentActionFake.Object); }
public ConsentController( IConsentActions consentActions, IDataProtectionProvider dataProtectionProvider) { _consentActions = consentActions; _dataProtector = dataProtectionProvider.CreateProtector("Request"); }
public ConsentController( IConsentActions consentActions, IDataProtectionProvider dataProtectionProvider, ITranslationManager translationManager, IEventPublisher eventPublisher, IEventAggregateRepository eventAggregateRepository) { _consentActions = consentActions; _dataProtector = dataProtectionProvider.CreateProtector("Request"); _translationManager = translationManager; _eventPublisher = eventPublisher; _eventAggregateRepository = eventAggregateRepository; }
public ConsentController( IConsentActions consentActions, IDataProtectionProvider dataProtectionProvider, ITranslationManager translationManager, IEventPublisher eventPublisher, IAuthenticationService authenticationService, IPayloadSerializer payloadSerializer) : base(authenticationService) { _consentActions = consentActions; _dataProtector = dataProtectionProvider.CreateProtector("Request"); _translationManager = translationManager; _eventPublisher = eventPublisher; _payloadSerializer = payloadSerializer; }
public ConsentController( IConsentActions consentActions, IDataProtectionProvider dataProtectionProvider, ITranslationManager translationManager, IEventPublisher eventPublisher, IEventAggregateRepository eventAggregateRepository, IAuthenticationService authenticationService, IUserActions usersAction, IPayloadSerializer payloadSerializer, AuthenticateOptions authenticateOptions) : base(authenticationService, authenticateOptions) { _consentActions = consentActions; _dataProtector = dataProtectionProvider.CreateProtector("Request"); _translationManager = translationManager; _eventPublisher = eventPublisher; _eventAggregateRepository = eventAggregateRepository; _payloadSerializer = payloadSerializer; }