Skip to content

Commit 1f74be0

Browse files
committed
fix: use IReadOnlyCollection instead
1 parent 7dfa549 commit 1f74be0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/EntityFramework/test/IdentityServer4.EntityFramework.Tests/IntegrationTest.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
using System;
2-
using System.Linq;
3-
using System.Runtime.InteropServices;
41
using Microsoft.EntityFrameworkCore;
52
using Microsoft.Extensions.Configuration;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Runtime.InteropServices;
67
using Xunit;
78

89
namespace IdentityServer4.EntityFramework.IntegrationTests
@@ -17,7 +18,7 @@ namespace IdentityServer4.EntityFramework.IntegrationTests
1718
public class IntegrationTest<TClass, TDbContext, TStoreOption> : IClassFixture<DatabaseProviderFixture<TDbContext>>
1819
where TDbContext : DbContext
1920
{
20-
public static readonly TheoryData<DbContextOptions<TDbContext>> TestDatabaseProviders;
21+
public static readonly IReadOnlyCollection<object[]> TestDatabaseProviders;
2122
protected readonly TStoreOption StoreOptions = Activator.CreateInstance<TStoreOption>();
2223

2324
static IntegrationTest()
@@ -50,7 +51,7 @@ static IntegrationTest()
5051

5152
protected IntegrationTest(DatabaseProviderFixture<TDbContext> fixture)
5253
{
53-
fixture.Options = TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions<TDbContext>)y)).ToList();
54+
fixture.Options = TestDatabaseProviders.SelectMany(x => x.Select(y => (DbContextOptions<TDbContext>) y)).ToList();
5455
fixture.StoreOptions = StoreOptions;
5556
}
5657
}

0 commit comments

Comments
 (0)