Skip to content

Commit 124ec1a

Browse files
add parameter less constructor for unit testing.
1 parent e1af4c1 commit 124ec1a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Infrastructure/Persistance/Db/AppDbContext.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
using System.Threading;
99
using System.Threading.Tasks;
1010

11-
public partial class AppDbContext : IdentityDbContext<User, Role, int>, IAppDbContext
11+
public class AppDbContext : IdentityDbContext<User, Role, int>, IAppDbContext
1212
{
1313
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
1414
{
1515

1616
}
1717

18+
public AppDbContext() { }
19+
1820
protected override void OnModelCreating(ModelBuilder modelBuilder)
1921
{
2022
base.OnModelCreating(modelBuilder);

src/Infrastructure/Persistance/Db/CleanArchWriteDbContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ public CleanArchWriteDbContext(DbContextOptions<AppDbContext> options) : base(op
88
{
99

1010
}
11+
12+
public CleanArchWriteDbContext() { }
1113
}
1214
}

0 commit comments

Comments
 (0)