From 6c93740936df97af085e581f34604ff24126048a Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Wed, 7 Jul 2021 12:55:04 +0200 Subject: [PATCH] Fixed exception --- .../Infrastructure/Persistence/Sql/SqlRepositoryTests.cs | 1 - LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs | 2 -- 2 files changed, 3 deletions(-) diff --git a/LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/Sql/SqlRepositoryTests.cs b/LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/Sql/SqlRepositoryTests.cs index c3733412..b748c98c 100644 --- a/LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/Sql/SqlRepositoryTests.cs +++ b/LinkDotNet.Blog.IntegrationTests/Infrastructure/Persistence/Sql/SqlRepositoryTests.cs @@ -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(); } } } \ No newline at end of file diff --git a/LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs b/LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs index 5f0e887b..af75db5b 100644 --- a/LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs +++ b/LinkDotNet.Infrastructure/Persistence/Sql/BlogPostContext.cs @@ -13,8 +13,6 @@ public BlogPostContext(DbContextOptions options) public DbSet BlogPosts { get; set; } - public DbSet Tags { get; set; } - protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity()