Exemple #1
0
 public LocalLoginInteractorTest()
 {
     _authorizationServiceMock       = new Mock <IAuthorizationService>();
     _clientRepositoryMock           = new Mock <IClientRepository>();
     _accountGetterServiceMock       = new Mock <IAccountGetterService>();
     _accountVerificationServiceMock = new Mock <IAccountVerificationService>();
     _schemeServiceMock = new Mock <ISchemeService>();
     _accountClaimsCreatorServiceMock = new Mock <IAccountClaimsCreatorService>();
     _signInServiceMock    = new Mock <ISignInService>();
     _localLoginInteractor = new LocalLoginInteractor(_authorizationServiceMock.Object,
                                                      _clientRepositoryMock.Object, _accountGetterServiceMock.Object, _accountVerificationServiceMock.Object,
                                                      _schemeServiceMock.Object, _accountClaimsCreatorServiceMock.Object, _signInServiceMock.Object);
 }
Exemple #2
0
 public LocalLoginController(ILocalLoginInteractor localLoginInteractor, IOptions <ApplicationUrlsAppSettings> applicationUrlsOptions)
 {
     _localLoginInteractor       = localLoginInteractor;
     _applicationUrlsAppSettings = applicationUrlsOptions.Value;
 }