6
6
/// <summary>
7
7
/// Used for testing <see cref="DbContext"/>.
8
8
/// </summary>
9
- public interface IDbContextTestBuilder
9
+ public interface IWithDbContextTestBuilder
10
10
{
11
11
/// <summary>
12
12
/// Tests whether <see cref="DbContext"/> entities pass the given assertions.
13
13
/// </summary>
14
14
/// <param name="assertions">Action containing all assertions for the <see cref="DbContext"/> entities.</param>
15
- /// <returns>The same <see cref="IDbContextTestBuilder "/>.</returns>
16
- IAndDbContextTestBuilder WithEntities ( Action < DbContext > assertions ) ;
15
+ /// <returns>The same <see cref="IWithDbContextTestBuilder "/>.</returns>
16
+ IAndWithDbContextTestBuilder WithEntities ( Action < DbContext > assertions ) ;
17
17
18
18
/// <summary>
19
19
/// Tests whether <see cref="DbContext"/> entities pass the given predicate.
20
20
/// </summary>
21
21
/// <param name="predicate">Predicate testing the <see cref="DbContext"/> entities.</param>
22
- /// <returns>The same <see cref="IDbContextTestBuilder "/>.</returns>
23
- IAndDbContextTestBuilder WithEntities ( Func < DbContext , bool > predicate ) ;
22
+ /// <returns>The same <see cref="IWithDbContextTestBuilder "/>.</returns>
23
+ IAndWithDbContextTestBuilder WithEntities ( Func < DbContext , bool > predicate ) ;
24
24
25
25
/// <summary>
26
26
/// Tests whether <see cref="DbContext"/> entities pass the given assertions.
27
27
/// </summary>
28
28
/// <typeparam name="TDbContext">Type of <see cref="DbContext"/>.</typeparam>
29
29
/// <param name="assertions">Action containing all assertions for the <see cref="DbContext"/> entities.</param>
30
- IAndDbContextTestBuilder WithEntities < TDbContext > ( Action < TDbContext > assertions )
30
+ IAndWithDbContextTestBuilder WithEntities < TDbContext > ( Action < TDbContext > assertions )
31
31
where TDbContext : DbContext ;
32
32
33
33
/// <summary>
34
34
/// Tests whether <see cref="DbContext"/> entities pass the given predicate.
35
35
/// </summary>
36
36
/// <typeparam name="TDbContext">Type of <see cref="DbContext"/>.</typeparam>
37
37
/// <param name="predicate">Predicate testing the <see cref="DbContext"/> entities.</param>
38
- IAndDbContextTestBuilder WithEntities < TDbContext > ( Func < TDbContext , bool > predicate )
38
+ IAndWithDbContextTestBuilder WithEntities < TDbContext > ( Func < TDbContext , bool > predicate )
39
39
where TDbContext : DbContext ;
40
40
41
41
/// <summary>
42
42
/// Tests whether <see cref="DbContext"/> entity <see cref="DbSet{TEntity}"/> passes the given assertions.
43
43
/// </summary>
44
44
/// <typeparam name="TEntity">Type of entity set.</typeparam>
45
45
/// <param name="assertions">Action containing all assertions for the <see cref="DbContext"/> entity set.</param>
46
- IAndDbContextTestBuilder WithSet < TEntity > ( Action < DbSet < TEntity > > assertions )
46
+ IAndWithDbContextTestBuilder WithSet < TEntity > ( Action < DbSet < TEntity > > assertions )
47
47
where TEntity : class ;
48
48
49
49
/// <summary>
50
50
/// Tests whether <see cref="DbContext"/> entity <see cref="DbSet{TEntity}"/> passes the given predicate.
51
51
/// </summary>
52
52
/// <typeparam name="TEntity">Type of entity set.</typeparam>
53
53
/// <param name="predicate">Predicate testing the <see cref="DbContext"/> entity set.</param>
54
- IAndDbContextTestBuilder WithSet < TEntity > ( Func < DbSet < TEntity > , bool > predicate )
54
+ IAndWithDbContextTestBuilder WithSet < TEntity > ( Func < DbSet < TEntity > , bool > predicate )
55
55
where TEntity : class ;
56
56
57
57
/// <summary>
@@ -60,7 +60,7 @@ IAndDbContextTestBuilder WithSet<TEntity>(Func<DbSet<TEntity>, bool> predicate)
60
60
/// <typeparam name="TDbContext">Type of <see cref="DbContext"/>.</typeparam>
61
61
/// <typeparam name="TEntity">Type of entity set.</typeparam>
62
62
/// <param name="assertions">Action containing all assertions for the <see cref="DbContext"/> entity set.</param>
63
- IAndDbContextTestBuilder WithSet < TDbContext , TEntity > ( Action < DbSet < TEntity > > assertions )
63
+ IAndWithDbContextTestBuilder WithSet < TDbContext , TEntity > ( Action < DbSet < TEntity > > assertions )
64
64
where TDbContext : DbContext
65
65
where TEntity : class ;
66
66
@@ -70,7 +70,7 @@ IAndDbContextTestBuilder WithSet<TDbContext, TEntity>(Action<DbSet<TEntity>> ass
70
70
/// <typeparam name="TDbContext">Type of <see cref="DbContext"/>.</typeparam>
71
71
/// <typeparam name="TEntity">Type of entity set.</typeparam>
72
72
/// <param name="predicate">Predicate testing the <see cref="DbContext"/> entity set.</param>
73
- IAndDbContextTestBuilder WithSet < TDbContext , TEntity > ( Func < DbSet < TEntity > , bool > predicate )
73
+ IAndWithDbContextTestBuilder WithSet < TDbContext , TEntity > ( Func < DbSet < TEntity > , bool > predicate )
74
74
where TDbContext : DbContext
75
75
where TEntity : class ;
76
76
}
0 commit comments