Ejemplo n.º 1
0
 public TenantClientSecretDownPartyController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantService, SecretHashLogic secretHashLogic) : base(logger)
 {
     this.logger          = logger;
     this.mapper          = mapper;
     this.tenantService   = tenantService;
     this.secretHashLogic = secretHashLogic;
 }
Ejemplo n.º 2
0
        private AccountLogic AccountLogicInstance(int passwordLength = 8, bool checkPasswordComplexity = true, bool checkPasswordRisk = true)
        {
            var routeBinding = new RouteBinding
            {
                PasswordLength          = passwordLength,
                CheckPasswordComplexity = checkPasswordComplexity,
                CheckPasswordRisk       = checkPasswordRisk,
            };
            var mockHttpContextAccessor = HttpContextAccessorHelper.MockObject(routeBinding);

            var telemetryScopedLogger = TelemetryLoggerHelper.ScopedLoggerObject(mockHttpContextAccessor);

            var fakeTenantRepository = new FakeTenantRepository();
            var fakeMasterRepository = new FakeMasterRepository();

            var secretHashLogic = new SecretHashLogic(mockHttpContextAccessor);

            var accountLogic = new AccountLogic(telemetryScopedLogger, fakeTenantRepository, fakeMasterRepository, secretHashLogic, mockHttpContextAccessor);

            return(accountLogic);
        }
Ejemplo n.º 3
0
 public MasterTenantDocumentsSeedLogic(SeedSettings settings, SecretHashLogic secretHashLogic, SimpleTenantRepository simpleTenantRepository)
 {
     this.settings               = settings;
     this.secretHashLogic        = secretHashLogic;
     this.simpleTenantRepository = simpleTenantRepository;
 }
 public TOidcClientSecretDownPartyController(TelemetryScopedLogger logger, IMapper mapper, ITenantRepository tenantRepository, SecretHashLogic secretHashLogic) : base(logger, mapper, tenantRepository, secretHashLogic)
 {
 }