Skip to content

Commit 6c93740

Browse files
committed
Fixed exception
1 parent 3ab739d commit 6c93740

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/Sql/SqlRepositoryTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public async Task ShouldDelete()
114114
await BlogPostRepository.DeleteAsync(blogPost.Id);
115115

116116
(await DbContext.BlogPosts.AsNoTracking().AnyAsync(b => b.Id == blogPost.Id)).Should().BeFalse();
117-
(await DbContext.Tags.AsNoTracking().AnyAsync(t => t.Id == blogPost.Id)).Should().BeFalse();
118117
}
119118
}
120119
}

LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ public BlogPostContext(DbContextOptions options)
1313

1414
public DbSet<BlogPost> BlogPosts { get; set; }
1515

16-
public DbSet<Tag> Tags { get; set; }
17-
1816
protected override void OnModelCreating(ModelBuilder modelBuilder)
1917
{
2018
modelBuilder.Entity<BlogPost>()

0 commit comments

Comments
 (0)