Exemple #1
0
        public PersistedGrantAppServiceTests(WarmupInMemory inMemoryData)
        {
            InMemoryData    = inMemoryData;
            _persistedGrant = InMemoryData.Services.GetRequiredService <IPersistedGrantAppService>();
            _database       = InMemoryData.Services.GetRequiredService <JPProjectAdminUIContext>();
            var notifications = (DomainNotificationHandler)InMemoryData.Services.GetRequiredService <INotificationHandler <DomainNotification> >();

            notifications.Clear();
        }
 public ApiResourceAppServiceInMemoryTest(WarmupInMemory inMemoryData, ITestOutputHelper output)
 {
     _output                = output;
     InMemoryData           = inMemoryData;
     _apiResourceAppService = InMemoryData.Services.GetRequiredService <IApiResourceAppService>();
     _database              = InMemoryData.Services.GetRequiredService <JPProjectAdminUIContext>();
     _notifications         = (DomainNotificationHandler)InMemoryData.Services.GetRequiredService <INotificationHandler <DomainNotification> >();
     _notifications.Clear();
 }
        private static async Task ValidateIs4Context(JpDatabaseOptions options, JPProjectAdminUIContext id4AdminUiContext)
        {
            var configurationDatabaseExist = await DbHealthChecker.CheckTableExists <Client>(id4AdminUiContext);

            var operationalDatabaseExist = await DbHealthChecker.CheckTableExists <PersistedGrant>(id4AdminUiContext);

            var isDatabaseExist = configurationDatabaseExist && operationalDatabaseExist;

            if (!isDatabaseExist && options.MustThrowExceptionIfDatabaseDontExist)
            {
                throw new DatabaseNotFoundException("IdentityServer4 Database doesn't exist. Ensure it was created before.'");
            }
        }
Exemple #4
0
 public ClientPropertyRepository(JPProjectAdminUIContext adminUiContext) : base(adminUiContext)
 {
 }
 public PersistedGrantRepository(JPProjectAdminUIContext adminUiContext) : base(adminUiContext)
 {
 }
Exemple #6
0
 public UnitOfWork(JPProjectAdminUIContext adminUiContext)
 {
     _adminUiContext = adminUiContext;
 }
 public ApiResourceRepository(JPProjectAdminUIContext adminUiContext) : base(adminUiContext)
 {
 }
Exemple #8
0
 public ApiSecretRepository(JPProjectAdminUIContext adminUiContext) : base(adminUiContext)
 {
 }
 public Repository(JPProjectAdminUIContext adminUiContext)
 {
     Db    = adminUiContext;
     DbSet = Db.Set <TEntity>();
 }
 public ClientClaimRepository(JPProjectAdminUIContext adminUiContext) : base(adminUiContext)
 {
 }