Skip to content

Commit 8b985b3

Browse files
committed
Moved unit test to according prod structure
1 parent a5f31a8 commit 8b985b3

32 files changed

+44
-40
lines changed

tests/LinkDotNet.Blog.IntegrationTests/Web/Features/Search/SearchTests.cs renamed to tests/LinkDotNet.Blog.IntegrationTests/Web/Features/Search/SearchPageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace LinkDotNet.Blog.IntegrationTests.Web.Features.Search;
1313

14-
public class SearchTests : SqlDatabaseTestBase<BlogPost>
14+
public class SearchPageTests : SqlDatabaseTestBase<BlogPost>
1515
{
1616
[Fact]
1717
public async Task ShouldFindBlogPostWhenTitleMatches()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using Microsoft.EntityFrameworkCore;
1414
using Microsoft.Extensions.DependencyInjection;
1515

16-
namespace LinkDotNet.Blog.IntegrationTests.Web.Features.ShowBlogPost.IndexTests;
16+
namespace LinkDotNet.Blog.IntegrationTests.Web.Features.ShowBlogPost;
1717

1818
public class ShowBlogPostPageTests : SqlDatabaseTestBase<BlogPost>
1919
{

tests/LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
<ProjectReference Include="..\..\src\LinkDotNet.Blog.Web\LinkDotNet.Blog.Web.csproj" />
1616
</ItemGroup>
1717

18+
<ItemGroup>
19+
<Folder Include="Web\Shared" />
20+
</ItemGroup>
21+
1822
</Project>

tests/LinkDotNet.Blog.UnitTests/Web/Pages/AboutMeTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/AboutMe/AboutMePageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
using Microsoft.Extensions.DependencyInjection;
1515
using X.PagedList;
1616

17-
namespace LinkDotNet.Blog.UnitTests.Web.Pages;
17+
namespace LinkDotNet.Blog.UnitTests.Web.Features.AboutMe;
1818

19-
public class AboutMeTests : TestContext
19+
public class AboutMePageTests : TestContext
2020
{
2121
[Fact]
2222
public void ShouldPassIsAuthenticated()

tests/LinkDotNet.Blog.UnitTests/Web/Shared/AddProfileShortItemTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/AboutMe/Components/AddProfileShortItemTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Bunit;
22
using LinkDotNet.Blog.Web.Features.AboutMe.Components;
33

4-
namespace LinkDotNet.Blog.UnitTests.Web.Shared;
4+
namespace LinkDotNet.Blog.UnitTests.Web.Features.AboutMe.Components;
55

66
public class AddProfileShortItemTests : TestContext
77
{
@@ -44,4 +44,4 @@ public void ShouldEmptyModelAfterTextEntered()
4444

4545
cut.Find("input").TextContent.Should().BeEmpty();
4646
}
47-
}
47+
}

tests/LinkDotNet.Blog.UnitTests/Web/Shared/Skills/AddSkillDialogTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/AboutMe/Components/AddSkillDialogTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using LinkDotNet.Blog.Web.Features.AboutMe.Components;
55
using Microsoft.Extensions.DependencyInjection;
66

7-
namespace LinkDotNet.Blog.UnitTests.Web.Shared.Skills;
7+
namespace LinkDotNet.Blog.UnitTests.Web.Features.AboutMe.Components;
88

99
public class AddSkillDialogTests : TestContext
1010
{
@@ -33,4 +33,4 @@ public void ShouldCreateSkill()
3333
string.Empty,
3434
null));
3535
}
36-
}
36+
}

tests/LinkDotNet.Blog.UnitTests/Web/Shared/Skills/SkillTagTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/AboutMe/Components/SkillTagTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using LinkDotNet.Blog.TestUtilities;
44
using LinkDotNet.Blog.Web.Features.AboutMe.Components;
55

6-
namespace LinkDotNet.Blog.UnitTests.Web.Shared.Skills;
6+
namespace LinkDotNet.Blog.UnitTests.Web.Features.AboutMe.Components;
77

88
public class SkillTagTests : TestContext
99
{
@@ -46,4 +46,4 @@ public void ShouldInvokeDeleteEvent()
4646

4747
wasInvoked.Should().BeTrue();
4848
}
49-
}
49+
}

tests/LinkDotNet.Blog.UnitTests/Web/Shared/Admin/CreateNewBlogPostTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/Admin/BlogPostEditor/Components/CreateNewBlogPostTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using LinkDotNet.Blog.TestUtilities;
66
using LinkDotNet.Blog.Web.Features.Admin.BlogPostEditor.Components;
77

8-
namespace LinkDotNet.Blog.UnitTests.Web.Shared.Admin;
8+
namespace LinkDotNet.Blog.UnitTests.Web.Features.Admin.BlogPostEditor.Components;
99

1010
public class CreateNewBlogPostTests : TestContext
1111
{

tests/LinkDotNet.Blog.UnitTests/Web/Shared/TextAreaWithShortcutsTests.cs renamed to tests/LinkDotNet.Blog.UnitTests/Web/Features/Admin/BlogPostEditor/Components/TextAreaWithShortcutsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Bunit;
33
using LinkDotNet.Blog.Web.Features.Admin.BlogPostEditor.Components;
44

5-
namespace LinkDotNet.Blog.UnitTests.Web.Shared;
5+
namespace LinkDotNet.Blog.UnitTests.Web.Features.Admin.BlogPostEditor.Components;
66

77
public class TextAreaWithShortcutsTests : TestContext
88
{

0 commit comments

Comments
 (0)