Skip to content

Commit

Permalink
Fixed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Jul 7, 2021
1 parent 3ab739d commit 6c93740
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public async Task ShouldDelete()
await BlogPostRepository.DeleteAsync(blogPost.Id);

(await DbContext.BlogPosts.AsNoTracking().AnyAsync(b => b.Id == blogPost.Id)).Should().BeFalse();
(await DbContext.Tags.AsNoTracking().AnyAsync(t => t.Id == blogPost.Id)).Should().BeFalse();
}
}
}
2 changes: 0 additions & 2 deletions LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public BlogPostContext(DbContextOptions options)

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

public DbSet<Tag> Tags { get; set; }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<BlogPost>()
Expand Down

0 comments on commit 6c93740

Please sign in to comment.